Command Effecting All Players on Server.
#1

Hello Guys. Ive been experimenting a bit. I searched for about half an hour and I couldn't find anything to help me in my situation.

Basically I want an executable command that will then effect everyone

Код:
					if(strcmp(cmd, "/nuke", true) == 0)
 	{
	    for (new i = 0; i < MAX_PLAYERS; i++)
    {
	//	PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/h779njgwom/halo_3_finish_the_fight.mp3", pos:X, pos:Y, pos:Z, 100, 1);
		PlayAudioStreamForPlayer(i, "AUDIO HERE :D");
			return 1;

	}
	}
by the "i" I want it to effect everyone, can somebody help us out?
Reply
#2

pawn Код:
if( !strcmp(cmdtext, "/Command", true))
{
     for( new i = 0; i != MAX_PLAYERS; i++)// Loop 500 players
     {
          if(!IsPlayerConnected(i))continue;// only connected players
          PlayAudioStreamForPlayer(i, "http://k003.kiwi6.com/hotlink/h779njgwom/halo_3_finish_the_fight.mp3");// Action all players connected
     }
     return 1;
}
Reply
#3

Thankyou Kindly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)