Raised This Month: $51 Target: $400
 12% 

STUPID QUESTION


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 11-21-2010 , 01:20   STUPID QUESTION
Reply With Quote #1

what is the return value of EV_INT_team?
abd i dun know where i can get the value?
davidto1995 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 11-21-2010 , 01:25   Re: STUPID QUESTION
Reply With Quote #2

EV_INT_team is not a function and therefore has no return value.

If used with entity_get_int() then it will return the team of the entity specified in the first argument of the function.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 11-21-2010 , 01:34   Re: STUPID QUESTION
Reply With Quote #3

totally no understand= =
davidto1995 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 11-21-2010 , 01:50   Re: STUPID QUESTION
Reply With Quote #4

Do you know anything about scripting, or are you just here because you found a snippet that uses EV_INT_team? If it's the latter, then paste the code here and I'll tell you what it does.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 11-21-2010 , 01:55   Re: STUPID QUESTION
Reply With Quote #5

i want to know how to determine a player whether is ct or t
davidto1995 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-21-2010 , 02:45   Re: STUPID QUESTION
Reply With Quote #6

Use cs_get_user_team() and you can compare to the CS_TEAM_* constants.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 11-21-2010 , 02:46   Re: STUPID QUESTION
Reply With Quote #7

i think this is gonna work , loop , then check if player is CT or T
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
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
davidto1995
Member
Join Date: Jul 2010
Location: hong kong
Old 11-21-2010 , 06:38   Re: STUPID QUESTION
Reply With Quote #9

thx you guys's explanation
davidto1995 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-21-2010 , 17:05   Re: STUPID QUESTION
Reply With Quote #10

Quote:
Originally Posted by SaM.ThE.MaN View Post
i think this is gonna work , loop , then check if player is CT or T
You should probably consider not giving advice anymore.
__________________
fysiks 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 19:43.


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