Raised This Month: $ Target: $400
 0% 

get players and send them cmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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:19.


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