Witam
Mam problem posiadam plugin by zmienić model dla vipa (flaga t) jednak nie dziala. Robi taki blad ze vip tt wyglada ja ct i odwrotnie
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b")
return PLUGIN_CONTINUE
}
public plugin_precache() {
precache_model("models/player/csclubvipp_cte/csclubct.mdl")
precache_model("models/player/csclubvipp_te/csclubtt.mdl")
return PLUGIN_CONTINUE
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_LEVEL_H) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "csclubtt")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "csclubct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}


Dodatki SourceMod













