16.02.2011, 23:15
OK, umm, i'm making a suggestion here since i am no good at this old style bs, but here is my suggestion, use ZCMD and SSCANF together it comes down to a command this small!
search the forum for these 2 includes if you want simple, fast, small commands like this
pawn Код:
COMMAND:pm(playerid, params[])
{
new otherid, message[128];
if(sscanf(params, "is", otherid, message)) return SendClientMessage(playerid, RED, "Command Syntax: /pm [ID] [Message]");
GetPlayerName(otherid, pname, sizeof(pname));
GetPlayerName(playerid, opname, sizeof(opname));
format(string5, sizeof(string5), "[PM][%s][%d]: %s", opname, playerid, message);
SendClientMessage(otherid, ORANGE, string5);
format(string5, sizeof(string5), "[PM Sent][%s][%d]: %s", pname, otherid, message);
SendClientMessage(playerid, ORANGE, string5);
return 1;
}