23.03.2013, 12:25
I recently made a code with an if Statement, but when someone does the command, only THEY can see it? Others are ment to see it when in range, I tried format string.
Код:
CMD:beatup(playerid, params[]) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); if(IsPlayerInRangeOfPoint(playerid, 20.0, x, y, z)) { SendClientMessage(playerid, COLOR_TAN, "*A Person Begins to beat up a person"); PlayAudioStreamForPlayer(playerid, "http://soundfxnow.com/soundfx/FistFight.mp3"); } return 1; }