/givemoney value too big
#2

Код:
CMD:givemoney(playerid, params[])
{
	if (PlayerInfo[playerid][pAdmin] >= 4)
	{
		new string[128], giveplayerid, money;
		if(sscanf(params, "id", giveplayerid, money)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /givemoney [playerid] [money]");

		if(IsPlayerConnected(giveplayerid))
		{
			GivePlayerCash(giveplayerid, money);
			format(string, sizeof(string), "You have given %s $%d !",GetPlayerNameEx(giveplayerid),money);
			SendClientMessageEx(playerid, COLOR_WHITE, string);
			format(string, sizeof(string), "%s has given %s $%d (/givemoney)", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid),money);
			Log("logs/stats.log", string);
		}
	}
	else
	{
		SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
	}
	return 1;
}
Try this!
Reply


Messages In This Thread
/givemoney value too big - by UltraScripter - 10.11.2014, 13:53
Re: /givemoney value too big - by Inesh - 10.11.2014, 13:57
Re: /givemoney value too big - by DavidBilla - 10.11.2014, 14:01
Re: /givemoney value too big - by UltraScripter - 10.11.2014, 14:03
Re: /givemoney value too big - by UltraScripter - 10.11.2014, 14:07
Re: /givemoney value too big - by DavidBilla - 10.11.2014, 14:20
Re: /givemoney value too big - by Diti1 - 10.11.2014, 14:20
Re: /givemoney value too big - by HY - 10.11.2014, 14:22
Re: /givemoney value too big - by iOxide - 10.11.2014, 14:22
Re: /givemoney value too big - by biker122 - 10.11.2014, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)