Givecash command bug
#6

Here!

Код:
dcmd_gc(playerid, params[])
{
	new
		giveplayerid,
		amount;
	if (sscanf(params, "ud", giveplayerid, amount)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash [playerid/partname] [amount]");
	else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
	else if (amount > GetPlayerMoney(playerid)) SendClientMessage(playerid, 0xFF0000AA, "Insufficient Funds");
	else
	{
		GivePlayerMoney(giveplayerid, amount);
		GivePlayerMoney(playerid, 0 - amount);
		SendClientMessage(playerid, 0x00FF00AA, "Money sent");
		SendClientMessage(giveplayerid, 0x00FF00AA, "Money received");
	}
	return 1;
}
Reply


Messages In This Thread
Givecash command bug - by Beljulji - 30.10.2012, 22:51
Re: Givecash command bug - by Beljulji - 30.10.2012, 23:31
Re: Givecash command bug - by guitarmandanny - 30.10.2012, 23:38
***** - by Nick.D - 30.10.2012, 23:48
Re: Givecash command bug - by Beljulji - 30.10.2012, 23:57
Re: Givecash command bug - by WizBoy - 31.10.2012, 00:08
Re: Givecash command bug - by guitarmandanny - 31.10.2012, 00:15
Re: Givecash command bug - by Beljulji - 31.10.2012, 00:27
Re: Givecash command bug - by Beljulji - 31.10.2012, 00:30
Re : Re: Givecash command bug - by lelemaster - 31.10.2012, 00:48

Forum Jump:


Users browsing this thread: 1 Guest(s)