Raised This Month: $ Target: $400
 0% 

[q]need small fix in syntax


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-08-2013 , 08:56   [q]need small fix in syntax
Reply With Quote #1

Hello everyone,
i want to create a plugin whick in player spawn will change the model of vip when he is CT to a custom model...

but i need some help to do this...

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "Vip Model"
#define VERSION "1.0"
#define AUTHOR "oxygen"


public plugin_init() 
{
    
RegisterHam(Ham_Spawn"player""player_spawn"1)
}

public 
plugin_precache()
{
    
precache_model("models/player/bond/bond.mdl")
    
precache_model("models/player/bond/bondT.mdl")
}

public 
player_spawn(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT || get_user_flags ADMIN_LEVEL_H)
    {
        
cs_set_user_model(id"bond")
    }

oxygen935 is offline
Send a message via Skype™ to oxygen935
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-08-2013 , 08:58   Re: [q]need small fix in syntax
Reply With Quote #2

Code:
if(cs_get_user_team(id) == CS_TEAM_CT || get_user_flags & ADMIN_LEVEL_H)

Code:
if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT && get_user_flags & ADMIN_LEVEL_H)
__________________
hleV is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 02-08-2013 , 09:04   Re: [q]need small fix in syntax
Reply With Quote #3

syntax error again!....
oxygen935 is offline
Send a message via Skype™ to oxygen935
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-08-2013 , 09:10   Re: [q]need small fix in syntax
Reply With Quote #4

Oh,
Code:
get_user_flags

Code:
get_user_flags(id)
__________________
hleV is offline
Reply


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 20:35.


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