04.07.2016, 17:31
Код:
public OnPlayerText(playerid, text[]) { new pText[144], Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); format(pText, sizeof (pText), "http://soundoftext.com/static/sounds/en/%s.mp3", text); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 7.0, x, y, z) { PlayAudioStreamForPlayer(i, pText, x, y, z, 7.0, 1); } } return 1; }