23.10.2011, 14:41
pawn Код:
#include a_samp
#include sscanf2
#include zcmd
CMD:pm(playerid,x[])
{
new
idx,str[2][60],text[128],name[24];
GetPlayerName(playerid,name,24);
if(sscanf(x,"is[128]",idx,text)) return SendClientMessage(playerid,-1,"use: /pm [playerid] [text]");
format(str[0],60,"PM %s: %s",name,text);
format(str[1],60,"Your pm: %s",str);
SendClientMessage(idx,-1,str[0]);
SendClientMessage(playerid,-1,str[1]);
return 0x1;
}