30.10.2010, 11:05
Код:
... GameTextForPlayer(odbiorcaid, string, 15500, 3); new Float: x, Float: y, Float: z; GetPlayerPos(odbiorcaid, x, y, z); format(string, sizeof(string), "%s", PhoneRings[PlayerData[odbiorcaid][pPhoneMusic]-1]); foreach(i, MAX_PLAYERS) { if(IsPlayerInRangeOfPoint(i, 10, x, y, z)) { RingToneHandle[i] = Audio_PlayStreamed(i, string); Audio_Set3DPosition(i, RingToneHandle[i], x, y, z, 5); } } ...