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 players[ 32 ], iNum;
get_players( players, iNum, "ae", "TERRORIST")
new rand = random_num(0,2)
if( cs_get_user_team( players[0] ) == CS_TEAM_T )// here is should for everyone
{
switch(rand)
{
case 0: client_cmd(players[i],"spk iSniper/interface/ru/defeat/fail1.wav")// here is should for everyone too