player play sound
#3

You need to loop through all players.
pawn Код:
for(new i; i < GetMaxPlayers(); i++)
This is an example loop, use that, and replace "playerid" with "i".

Currently your script sends the message to "playerid", which is defined in the command. Which means it will only send it to the playerid that uses the command.
pawn Код:
foreach(Player, i)
You can also use "foreach" to do it if you have that include.
Reply


Messages In This Thread
player play sound - by AgusZ - 13.01.2015, 11:29
Re: player play sound - by JonathanFeitosa - 13.01.2015, 13:53
Re: player play sound - by CalvinC - 13.01.2015, 14:00
Re: player play sound - by JonathanFeitosa - 13.01.2015, 14:07
Re: player play sound - by AgusZ - 13.01.2015, 14:49
Re: player play sound - by CalvinC - 13.01.2015, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)