Raised This Month: $ Target: $400
 0% 

Only when being terrorist or CT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-07-2010 , 22:32   Re: Only when being terrorist or CT
Reply With Quote #5

Tsk tsk NcB... all that C++ reading has caused you to get sloppy.

Don't use get_user_team, it returns false results sometimes. Also, the code NcB posted had a couple of bracket-eering errors in it.

Code:
#include <amxmodx> #include <cstrike> // ... public doAction( id ) {     new CsTeams:iTeam = cs_get_user_team( id )         switch( iTeam )     {         case CS_TEAM_T:         {             client_cmd( id, "say terrorist" )         }                 case CS_TEAM_CT:         {             client_cmd( id, "say counter-terr" )         }                 default: // spec or unassigned         {             client_cmd( id, "say spec" )         }     } }

EDIT: *giggle* at the coincidental timing.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 03-07-2010 at 22:36.
wrecked_ is offline
 



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 08:40.


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