06.12.2013, 17:38
pawn Код:
CMD:pm(playerid, params[])
{
new string2[256],string1[256],giveid,text;
if(sscanf(params,"us",giveid,text))
{
SendClientMessage(playerid,COLOR_GREY,"Usage: /Pm [ID] [Text]");
}
else
{
format(string2,sizeof(string2),"[PM] to %s(ID:%d): %s",GetPlayerNameEx(giveid),giveid,text);
SendClientMessage(playerid,COLOR_GREEN,string2);
format(string1,sizeof(string1),"[PM] from %s(ID:%d): %s",GetPlayerNameEx(playerid),playerid,text);
SendClientMessage(giveid,COLOR_GREEN,string1);
}
return 1;
}