28.11.2013, 20:31
(
Последний раз редактировалось RooK1e; 28.11.2013 в 21:33.
)
hello,
ProxDetectorS don't work , player can look message everywhere. How to fix that?
ProxDetectorS don't work , player can look message everywhere. How to fix that?
Код:
Chat(random, color, string[]) { foreach(Player, i) { if(GetPVarInt(i, "IDT") == random) { new Float:X, Float:Y, Float:Z; new playerid,giveplyerid; GetPlayerPos(playerid, X, Y, Z); GetPlayerPos(giveplayerid, X, Y, Z); if (ProxDetectorS(3.0, playerid, giveplayerid)) { SendClientMessage(i, color, string); } else SendClientMessage(playerid,COLOR_VBl,"Error"); } } }