Raised This Month: $ Target: $400
 0% 

[HELP] Changing Player Models


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Crimes91
BANNED
Join Date: Nov 2011
Old 11-02-2011 , 14:56   [HELP] Changing Player Models
Reply With Quote #1

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)
}
Crimes91 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode