- Ошибка
-
Models not given to players.
- ОС
- Linux
- Amx Mod X
-
Latest 1.9
- Билд
-
Latest ReHLDS
- ReGamedll
-
Latest ReGameDLL
- Версия Metamod
-
Latest Metamod-R
- Список метамодулей
-
Latest ReChecker + Reunion
- Список плагинов
-
only amxmodx default plugins
and amx_adminmodel.amxx
- Автор плагина
- KaOs
- Версия плагина
- 1.1.1
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define VIP ADMIN_RESERVATION
#define ADMIN ADMIN_BAN
new const SZ_MODELS_CT[][] =
{
"models/player/test_vip_ct/test_vip_ct.mdl", // VIP MODEL LOCATION FOR CT
"models/player/test_admin_ct/test_admin_ct.mdl", // ADMIN MODEL LOACTION FOR CT
}
new const SZ_MODELS_T[][] =
{
"models/player/test_vip_t/test_vip_t.mdl", // VIP MODEL LOCATION FOR T
"models/player/test_admin_t/test_admin_t.mdl", // ADMIN MODEL LOACTION FOR T
}
public plugin_init()
{
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b")
}
public plugin_precache()
{
for(new i = 0; i < sizeof SZ_MODELS_CT; i++)
{
precache_model(SZ_MODELS_CT[i])
}
for(new i = 0; i < sizeof SZ_MODELS_T; i++)
{
precache_model(SZ_MODELS_T[i])
}
}
public resetModel(id, level, cid)
{
new flags = get_user_flags(id)
if(flags & VIP)
{
switch(get_user_team(id))
{
case CS_TEAM_T: cs_set_user_model(id, SZ_MODELS_T[0])
case CS_TEAM_CT: cs_set_user_model(id, SZ_MODELS_CT[0])
}
}
if(flags & ADMIN)
{
switch(get_user_team(id))
{
case CS_TEAM_T: cs_set_user_model(id, SZ_MODELS_T[1])
case CS_TEAM_CT: cs_set_user_model(id, SZ_MODELS_CT[1])
}
}
}
The plugin running, modles are downloading when players join the server, but VIPs or admins don't get skin model it's just default.
I forgot to say that I have latest reapi module as well.
I forgot to say that I have latest reapi module as well.
Последнее редактирование: