czy to:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init()
{
register_plugin("VIP Model", "1.0", "Mis")
register_event("ResetHUD", "vip", "b")
return PLUGIN_CONTINUE
}
public plugin_precache()
{
precache_model("models/player/vip_ct/vip_ct.mdl")
precache_model("models/player/vip_te/vip_te.mdl")
return PLUGIN_CONTINUE
}
public vip(id, level, cid)
{
if (get_user_flags(id) & ADMIN_IMMUNITY & ADMIN_RESERVATION & ADMIN_USER)
{
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T)
{
cs_set_user_model(id, "vip_te")
}
else if(userTeam == CS_TEAM_CT)
{
cs_set_user_model(id, "vip_ct")
}
else
{
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}a dokładnie to:
if (get_user_flags(id) & ADMIN_IMMUNITY & ADMIN_RESERVATION & ADMIN_USER)
bedzee oznaczac ze tylko osoby z flaga abz beda mieli ten model czy osoby z flagami a, b i z? bo mi potrzeba ze z flagami abz maja ten model


Dodatki SourceMod



Temat jest zamknięty










