01.08.2012, 21:20
I need Help With My Chat, when i type a message it goes accross the whole server, how can i script so it doesn't do it unless i do /o?
stock ProxDetector(Float:radi, playerid, string[],color)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
foreach(Player,i)
{
if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
{
SendClientMessage(i,color,string);
}
}
}
LimitGlobalChatRadius(200.0);
// will send msg only to players in 200y radius
pawn Код:
|
I saw you today posting same thing in another topic, this is scripting help section, we help ppl here
|