What's wrong here?
#1

Код:
CMD:givemoney(playerid, params[])
{
	if(PlayerInfo[playerid][pAdminLevel] >= 2)
	{
	    new
	        targetid, cash;
		if(sscanf(params, "ui", targetid, cash)) return SendClientMessage(playerid, 0xE60000FF, "Warning:{FFFFFF} /givemoney [playerid] [cash amount]");
		else
		{
		    new string[128];
		    format(string, sizeof(string), "AdmLog: Administrator %s has rewarded %s money! (amount: %d)!", GetName(playerid), targetid, cash);
		    SendClientMessageToAdmins(playerid, string);
			GivePlayerMoney(targetid, cash);
	}
	return 1;
}
Reply


Messages In This Thread
What's wrong here? - by BleverCastard - 24.04.2012, 20:17
Re: What's wrong here? - by [D]ry[D]esert - 24.04.2012, 20:22
Re: What's wrong here? - by ViniBorn - 24.04.2012, 20:22
Re: What's wrong here? - by BleverCastard - 24.04.2012, 20:37
Re: What's wrong here? - by tiernantheman - 24.04.2012, 20:39
Re: What's wrong here? - by BleverCastard - 24.04.2012, 20:41
Re: What's wrong here? - by BleverCastard - 24.04.2012, 20:58
Re: What's wrong here? - by MP2 - 24.04.2012, 21:10
Re: What's wrong here? - by BleverCastard - 24.04.2012, 21:15
Re: What's wrong here? - by MP2 - 24.04.2012, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)