07.06.2020, 15:09
confundi aq rs
PHP Code:
Uso: SendNearestMessage(playerid, -1, "sla", 1.0);
PHP Code:
stock SendNearestMessage(playerid, color, text[], Float:range)
{
static Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
for (new i; i < MAX_PLAYERS; i++)
if (IsPlayerInRangeOfPoint(i, range, Pos[0], Pos[1], Pos[2]))
SendClientMessage(i, color, text);
return 1;
}