04.03.2012, 18:38
Most Probably copied from the LuxAdmin ^^
Well don't take it as an offense, just kidding.
I recommend you to use sscanf and Zcmd and ZCMD is the most fastest command processor in SAMP and sscanf is better and more efficient then other things.
Made a rough one, test if this works, made fast from phone.
-FalconX
Well don't take it as an offense, just kidding.
I recommend you to use sscanf and Zcmd and ZCMD is the most fastest command processor in SAMP and sscanf is better and more efficient then other things.
pawn Код:
dcmd_setcash(playerid, params[])
{
new pID, cash;
if(IsPlayerAdmin(playerid))
{
if(sscanf(params, "ud", pID, cash)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /setcash [playerid] [amount of money]");
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_RED, "This player is not connected");
ResetPlayerMoney(pID);
GivePlayerMoney(pID,cash);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You must be administrator to use that command!");
}
}
-FalconX

