Raised This Month: $ Target: $400
 0% 

execute a comand on a team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-02-2009 , 11:17   Re: execute a comand on a team
Reply With Quote #2

Quote:
Originally Posted by rufee View Post
how to execute a comand on the whole team ?
for example slaying CT
http://www.amxmodx.org/funcwiki.php?go=func&id=174

Then use a for loop for all players

PHP Code:
new iPlayers[32];
new 
iNum;
get_playersiPlayers iNum ,"e" ,"CT" );
//get_players( iPlayers , iNum  ,"e" ,"TERRORIST" )

for( new 0iNum i++)
{
    
//slay iPlayers[i];

__________________

Last edited by Bugsy; 03-02-2009 at 11:20.
Bugsy 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 17:09.


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