19.11.2011, 16:43
Have fun, it's in zcmd btw.
pawn Код:
COMMAND:pm(playerid, params[])
{
new targetid, string[128], message[128];
if(sscanf(params,"uS(No message specified)[128]",targetid,message)) return SendClientMessage(playerid,SERVER_ORANGE," Correct usage is /pm [ name/id ] [ message ].");
format(string, sizeof(string),"[ Received PM ] %s[%d]: %s",Player[playerid][name],playerid,message);
SendClientMessage(targetid,PLAYER_COLOR_YELLOW,string);
format(string, sizeof(string),"[ Sent PM ] %s[%d]: %s",Player[targetid][name],targetid,message);
SendClientMessage(playerid,PLAYER_COLOR_YELLOW,string);
return true;
}