20.06.2011, 14:37
pawn Код:
CMD:me(playerid,params[])
{
if(!strlen(params)) return SendClientMessage(playerid, red, "Usage: /me [text]");
new string[128], name[24], Float:x, Float:y, Float:z;
GetPlayerName(playerid,name,24);
GetPlayerPos(playerid,x,y,z);
format(string,128,"%s %s",name,params);
foreach(Player, i)
{
if(IsPlayerInRangeOfPoint(i, 10, x, y, z))
{
SendClientMessage(i,red, string);
}
}
return 1;
}
Use zcmd and foreach