16.03.2019, 01:40
PHP Code:
//Coloca no inнcio do GM, para mais otimizaзгo.
new zName[24];
stock ReturnName(playerid)
{
GetPlayerName(playerid, zName, 24);
return zName;
}
static
Float:cPos[3];
GetPlayerPos(playerid, cPos[0], cPos[1], cPos[2]);
for(new i; i != MAX_PLAYERS; ++i)
{
if(IsPlayerInRangeOfPoint(i, 100.0, cPos[0], cPos[1], cPos[2]))
{
if(IsPlayerConnected(i))
{
new string[256];
format(string,sizeof(string),"[%d] %s diz: %s", playerid, ReturnName(playerid), text);
SendClientMessage(i, -1, text);
}
}
}
return 0;
}

