08.10.2012, 17:27
Code:
CMD:givecash(playerid,params[]) { new target,ammount; if(sscanf(params,"ud",target,ammount)) return SendClientMessage(playerid,-1,"/givecash[playerid][ammount]"); if(!IsPlayerConnected(target)) return SendClientMessage(playerid,-1,"invalid playerid."); if(ammount > 1020301 || ammount < 0) return SendClientMessage(playerid,-1,"Invalid ammount."); GivePlayerMoney(playerid,-ammount); GivePlayerMoney(target,ammount); return 1; }