10.05.2016, 09:48
pawn Код:
for
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
And also, be careful because SendClientMessageToAll(-1, "Hardwell ft. Mitch Crown - Call Me A Spaceman"); will be announced to the whole server everytime you loop and find a connected player. So to explain, you loop and find that player ID 0 is connected, it will play the stream and send a client message to everyone. The same thing happens for player's 1 and 2, 3 and 4, etc until the chat is spammed with that message.
Instead, just use SendClientMessage(i, -1, message);
Hope I helped!