11.08.2011, 02:04
Quote:
You must have the zcmd include
pawn Code:
|
PHP Code:
stock SendLocalChat(playerid,color,msg[],Float:radius)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
for(new ply;ply<MAX_PLAYERS;ply++)
{
if(IsPlayerInRangeOfPoint(ply,radius,x,y,z))SendClientMessage(ply,color,msg);
}
return 1;
}
PHP Code:
CMD:me(playerid, params[])
{
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /me [text]");
new str[128], new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(str, sizeof(str), "* %s %s", PlayerName, params);
SendLocalChat(playerid,COLOR_PURPLE,str,30.0);
return 1;
}