15.03.2010, 05:25
hi im making a script from scratch and i need to know how to make it so when people chat (just regular press t then type your text) that only people within a certain range can hear it anyone know how to do this?
public OnPlayerText(playerid, text[])
{
if(!IsPlayerInRangeOfPoint(playerid, range, x, y, z);//here
{
SendClientMessage(playerid, color, "You can`t chat from this range .");
return 0;
}
return 1;
}