Quote:
Originally Posted by ue_falconx
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.
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!"); } }
Made a rough one, test if this works, made fast from phone.
-FalconX
|
I Wasn't Know How To Use This tmp2 and i copied it......
but any way the sscanf is really easy i learned it now by this cmd
and it's working fine thnx i am going to convert the all cmds to sccanf