 |
|
Junior Member
|

06-11-2011
, 05:11
Re: Help on Team Models plugin [CS 1.6]
|
#6
|
Quote:
Originally Posted by Dr7sTyLe
PHP Code:
#include <amxmodx> #include <cstrike>
public plugin_init() { register_plugin("Halo Skins", "0.5", "Front Line") register_event("ResetHUD", "resetModel", "b") register_logevent("roundstart", 2, "1=Round_Start")
return PLUGIN_CONTINUE } public roundstart(id) { new CsTeams:userTeam = cs_get_user_team(id) if (userTeam == CS_TEAM_T) { cs_set_user_model(id,"hns_t_mm1")
} else if(userTeam == CS_TEAM_CT) { cs_set_user_model(id,"vip") } else { cs_reset_user_model(id) } return PLUGIN_CONTINUE } public plugin_precache() { precache_model("models/player/hns_t_mm1/hns_t_mm1.mdl") precache_model("models/player/vip/vip.mdl")
return PLUGIN_CONTINUE }
public resetModel(id) { new CsTeams:userTeam = cs_get_user_team(id) if (userTeam == CS_TEAM_T) { cs_set_user_model(id,"hns_t_mm1")
} else if(userTeam == CS_TEAM_CT) { cs_set_user_model(id,"vip") } else { cs_reset_user_model(id) } return PLUGIN_CONTINUE } public client_putinserver(id) { new CsTeams:userTeam = cs_get_user_team(id) if (userTeam == CS_TEAM_T) { cs_set_user_model(id,"hns_t_mm1")
} else if(userTeam == CS_TEAM_CT) { cs_set_user_model(id,"vip") } else { cs_reset_user_model(id) } return PLUGIN_CONTINUE }
|
thank you! ill try that one!
Edit: Still won't work! I just realized you just repeated most of the stuff but thanks for the effort!
Last edited by chaotix911; 06-11-2011 at 05:15.
|
|
|
|