Código PHP:
stock GetPlayerCountInArea(Float:PosX, Float:PosY, Float:PosZ, Float:Range)
{
new count = 0;
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(GetPlayerDistanceFromPoint(i, PosX, PosY, PosZ) <= Range)
{
count ++;
}
else continue;
}
return count;
}