View Single Post
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