25.09.2010, 09:12
pawn Код:
dcmd_pm(playerid, params[])
{
new targetid;
new string[128];
new message[128];
if(sscanf(params,"uz",targetid,message)) return SM(playerid,red,"Error: /pm [id/name] [message]");
format(string, sizeof(string),"PM: %s(id: %d): %s",gPlayer[playerid][gName],message);
SendClientMessage(targetid,PLAYER_COLOR_YELLOW,string);
return 1;
}