Hello, i'm trying to make my OWN jailbreak plugin...
And i want, if a player select on: Counter Terroriste: Urban, then give: Urban model,
Else, give the guard model, It's working but, after i select Urban, i have the Guard model not Urban model.
I'm using this code:
Quote:
public player_spawn(id)
{
static CsTeams:team
if(!is_user_connected(id))
return HAM_IGNORED
team = cs_get_user_team(id)
switch(team)
{
case(CS_TEAM_CT):
{
new szModel[ 32 ];
get_user_info( id, "model", szModel, charsmax( szModel ) );
if( !equali( szModel, "urban" ) && !equali( szModel, "urban" ) )
set_user_info(id, "model", "jailbreak")
entity_set_int(id, EV_INT_body, 3)
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
}
|