18.11.2012, 14:43
Hello, i have script a /givemoney Command and all works, but how can i make a /removemoney Command, to remove from a Player any Money?
Here the /givemoney Cmd:
Here the /givemoney Cmd:
Код:
COMMAND:givemoney(playerid, params[]) { new targetid, amount; if(PlayerAdmin[playerid] < 4) return SendClientMessage(playerid,COLOR_RED,"You cannot use this Command!"); if(sscanf(params, "ud", targetid, amount)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /givemoney <Part of Name/ ID> <Money>"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "Player is not connected"); GivePlayerMoneyEx(targetid, amount); return 1; }