Raised This Month: $ Target: $400
 0% 

[HELP] Changing Player Models


Post New Thread Reply   
 
Thread Tools Display Modes
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
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 11-02-2011 , 15:08   Re: [HELP] Changing Player Models
Reply With Quote #2

Use: cs_set_user_model
__________________
kiki33hun is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-02-2011 , 15:36   Re: [HELP] Changing Player Models
Reply With Quote #3

http://www.amxmodx.org/funcwiki.php?...odel&go=search
Dark Style is offline
Crimes91
BANNED
Join Date: Nov 2011
Old 11-02-2011 , 16:28   Re: [HELP] Changing Player Models
Reply With Quote #4

No, i want a thing like that:

Quote:
if(cs_team) = Urban
{
set_user_info(id, "model", "urban")
}

else
set_user_info(id, "model", "jailbreak")

Can you help?


Else = if the player select: gign , gsg9, sas

Last edited by Crimes91; 11-02-2011 at 16:31.
Crimes91 is offline
Reply



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