a script from my sma. !
where is the problem?
register_event("ResetHUD", "resetModel", "b") return PLUGIN_CONTINUE } public plugin_precache() { precache_model("models/player/smith/smith.mdl") precache_model("models/player/smith/smith.mdl") return PLUGIN_CONTINUE } public resetModel(id, level, cid) { if (get_user_flags(id) & ADMIN_CVAR) { new CsTeams:userTeam = cs_get_user_team(id) if (userTeam == CS_TEAM_T) { cs_set_user_model(id, "smith") } else if(userTeam == CS_TEAM_CT) { cs_set_user_model(id, "smith") } else { cs_reset_user_model(id) } } |
Re: a script from my sma. !
1: Plz, add [PHP] bbcode in your code, next time.
2: Maybe this: PHP Code:
|
| All times are GMT -4. The time now is 15:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.