09.04.2011, 23:03
Here's a /me command via strcmp:
I don't know how to make it for close players only, but give IsPlayerInRangeOfPoint a try.
Edit this command as you desire.
pawn Код:
{
if(strcmp(cmdtext, "/me", true, 3)==0) {
new pname1[24], string[256];
GetPlayerName(playerid, pname1, 24);
format(string, 256, "*%s (%d) %s", pname1, playerid, cmdtext[4]);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 1;
}
Edit this command as you desire.