How to add a SendMoney command MAX Money Limit
#2

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)