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

get players and send them cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 11-09-2017 , 09:19   get players and send them cmd
Reply With Quote #1

i get the get_players for specific team and want to send them client_cmd for everyone but how ?

PHP Code:
public ct_win()
{
  new 
players32 ], iNum;
  
get_playersplayersiNum"ae""TERRORIST")

 
  new 
rand random_num(0,2)

  if( 
cs_get_user_teamplayers[0] ) == CS_TEAM_T )// here is should for everyone
  
{
      switch(
rand)
      {
        case 
0client_cmd(players[i],"spk iSniper/interface/ru/defeat/fail1.wav")// here is should for everyone too 

Last edited by undead52; 11-09-2017 at 09:24.
undead52 is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 11-09-2017 , 09:49   Re: get players and send them cmd
Reply With Quote #2

PHP Code:
public ct_win()
{
    new 
rand random_num0,)
        
    new 
players32 ], iNumidi
    get_players
playersiNum"ae""TERRORIST" )

    for( 
0iNumi++ )
    {
        
id players]
        
        switch( 
rand )
        {
            case 
0:
            {
                
client_cmdid,"spk iSniper/interface/ru/defeat/fail1.wav" )// here is should for everyone too 
            
}
            case 
1:
            {
                
//Your code
            
}
        }
    }

__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
undead52
Senior Member
Join Date: Dec 2016
Old 11-09-2017 , 12:32   Re: get players and send them cmd
Reply With Quote #3

how can i extend round end time ?

Last edited by undead52; 11-09-2017 at 16:10.
undead52 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-09-2017 , 21:18   Re: get players and send them cmd
Reply With Quote #4

New questions/topics should be posted in a new thread (after searching of course).
__________________
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 06:40.


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