Raised This Month: $ Target: $400
 0% 

as used cs_get_user_team???


Post New Thread Reply   
 
Thread Tools Display Modes
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-16-2009 , 10:21   Re: as used cs_get_user_team???
Reply With Quote #11

ROFL
__________________

anakin_cstrike is offline
larito
Veteran Member
Join Date: Nov 2008
Location: Argentina- Mendoza
Old 02-16-2009 , 11:52   Re: as used cs_get_user_team???
Reply With Quote #12

is the most simple to understand
for my
__________________
Facebook: Ariel Berardi
larito is offline
Send a message via MSN to larito
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-16-2009 , 13:04   Re: as used cs_get_user_team???
Reply With Quote #13

Code:
new iPlayers[32], iPlayersCount; get_players(iPlayers, iPlayersCount);   for (new iNumber = 0; iNumber < iPlayersCount; iNumber++) {         switch (get_user_team(iNum))         {                 case 1:                 {                         // Player's team is CT                         // Your code here                 }                 case 2:                 {                         // Player's team is T                         // Your code here                 }                   // If you want to do something if player is not CT nor T,                 // remove /* and */                 /*default:                 {                         // Player is Spectator or still unassigned                         // Your code here                 }*/         } }
This is better than you're using now. IMO you should understand the code I wrote.
__________________

Last edited by hleV; 02-16-2009 at 13:06.
hleV 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 17:05.


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