01.11.2010, 10:29
zcmd & sscanf.
Should get you going.
EDIT: K, looks like ViruZZzZ wrote a bit faster x)
pawn Код:
command(penalty, playerid, params[])
{
new Amount, pID;
if(sscanf(params, "ui", pID, Amount)) return SendClientMessage(playerid, COLOR, "Usage /penalty ( playername / id ) ( amount )");
SetPlayerPenalty(pID, Amount);
new string[80];
format(string, 80, "Changed id: %d's Penalty points to: %d.",pID, Amount);
SendClientMessage(playerid, COLOR, string);
return 1;
}
EDIT: K, looks like ViruZZzZ wrote a bit faster x)
Quote:
Use sscanf + zcmd
pawn Код:
|