05.10.2011, 05:32
I know its a simple command, but I get errors "Server: Unknown Command" and Im not sure if it sends the message or not
pawn Код:
CMD:pm(playerid,params[]){
new id,message;
if(sscanf(params,"uz",id,message)) return SendClientMessage(playerid,COLOR_GRAY,"SYNTAX: /pm [ID] [Message]");
else{
new string[128];
format(string,sizeof(string),"PM From %s: %s",GetName(id),params);
SendClientMessage(playerid,COLOR_YELLOW,string);
format(string,sizeof(string),"PM To %s: %s",GetName(playerid),params);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
return 1;
}