Raised This Month: $ Target: $400
 0% 

STUPID QUESTION


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 11-21-2010 , 03:31   Re: STUPID QUESTION
Reply With Quote #8

wrecked_ means that EV_INT_team is a definition.

Use it in entity_get_int( ) function to get a return value.

Code:
new team = entity_get_int( id, EV_INT_team );
Though it's much easier to use get_user_team() or cs_get_user_team(), though apparently get_user_team() sometimes returns a wrong value, though I've never had a problem with it.

Code:
enum
{
    TEAM_UNASSIGNED,     // 0
    TEAM_T,     // 1
    TEAM_CT,     // 2
    TEAM_SPEC,     // 3
};

EXAMPLE:

if( get_user_team( id ) == TEAM_T )
{
    //do stuff
}
shadow.hk is offline
Send a message via MSN to shadow.hk
 



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 11:22.


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