AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Changing Player Models (https://forums.alliedmods.net/showthread.php?t=171154)

Crimes91 11-02-2011 14:56

[HELP] Changing Player Models
 
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)
}

kiki33hun 11-02-2011 15:08

Re: [HELP] Changing Player Models
 
Use: cs_set_user_model

Dark Style 11-02-2011 15:36

Re: [HELP] Changing Player Models
 
http://www.amxmodx.org/funcwiki.php?...odel&go=search

Crimes91 11-02-2011 16:28

Re: [HELP] Changing Player Models
 
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


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

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