A yetkili slotlar t ve ct için models oluyor fakat birde b yetkili adminler için t ve ct models istiyorum yardımcı olacak varmı
* 95.173.173.40 * İmperiaL * insta : impcs40 *
)

(20-01-2024, 22:56)hasanbask Adlı Kullanıcıdan Alıntı: A yetkili slotlar t ve ct için models oluyor fakat birde b yetkili adminler için t ve ct models istiyorum yardımcı olacak varmıA için kullandığın plugini at düzenleyip atiyim
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
public plugin_init() {
register_plugin("AMX Admin Model", "1.1.1", "whitemike")
register_event("ResetHUD", "resetModel", "b")
}
public plugin_precache() {
precache_model("models/player/admin_te.mdl")
precache_model("models/player/admin_ct.mdl")
}
public resetModel(id, level, cid) {
if (get_user_flags(id) & ADMIN_RESERVATION) {
new CsTeams:userTeam = cs_get_user_team(id)
if (userTeam == CS_TEAM_T) {
cs_set_user_model(id, "admin_te")
}
else if(userTeam == CS_TEAM_CT) {
cs_set_user_model(id, "admin_ct")
}
else {
cs_reset_user_model(id)
}
}
return PLUGIN_CONTINUE
}