13.08.2012, 11:57
I've made my ProxDetector, but whenever i type something, it shows up for myself, but it doesn't show up for others...
And whenever my friend types something, it shows up for me, but it doesnt for him...
help would be much appriciated..
And whenever my friend types something, it shows up for me, but it doesnt for him...
help would be much appriciated..
Код:
stock SendLocalMessage(playerid, range, string[]) { new Float:proxX, Float:proxY, Float:proxZ; GetPlayerPos(playerid, proxX, proxY, proxZ); for (new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerDistanceFromPoint(i, proxX, proxY, proxZ) <= range/3) { SendClientMessage(i, COLOR_FADE_1, string); return 1; } if(GetPlayerDistanceFromPoint(i, proxX, proxY, proxZ) <= range/1.9) { SendClientMessage(i, COLOR_FADE_2, string); return 1; } if(GetPlayerDistanceFromPoint(i, proxX, proxY, proxZ) <= range/1.5) { SendClientMessage(i, COLOR_FADE_3, string); return 1; } if(GetPlayerDistanceFromPoint(i, proxX, proxY, proxZ) <= range/1.2) { SendClientMessage(i, COLOR_FADE_4, string); return 1; } if(GetPlayerDistanceFromPoint(i, proxX, proxY, proxZ) <= range) { SendClientMessage(i, COLOR_FADE_5, string); return 1; } } } return 1; }