24.03.2015, 12:45
Код:
SendNearMessage(playerid, Float:Disatance, color, message[]) { new Float:floatvar[3], VW = GetPlayerVirtualWorld(playerid) ; GetPlayerPos(playerid, floatvar[0], floatvar[1], floatvar[2]); foreach (new i : Player) { if ( GetPlayerVirtualWorld(i) != VW ) continue; if ( IsPlayerInRangeOfPoint(i, Disatance, x, y, z) ) { SendClientMessage(i, color, message); } } return 1; }