Making a /getsteel command
#1

ok here is what i have so far

Код:
CMD:getsteel(playerid, params[])
{
	if(Arms[playerid] == 1)
	{
		if(IsPlayerInRangeOfPoint(playerid, 4, 245.4962, 1420.4618, 10.5604))
		{
			if(PlayerMats[playerid][steel1] >= 1)
			{
			    PlayerMats[playerid][steel1] = 1;
			    SendClientMessage(playerid, COLOR_YELLOW, "You have now purchased some steel ignots");
			    SendClientMessage(playerid, COLOR_YELLOW, "Please deliver to refinery to make ignots into usable steel.");
			    return 1;
			}
			else
			{
			    SendClientMessage(playerid, COLOR_YELLOW, "You can not hold any more raw materials");
			    return 1;
			}
		}
		else
		{
		    SendClientMessage(playerid, COLOR_YELLOW, "You must first go to the oil refinery to get steel package.");
		    return 1;
		}
	}
	else
	{
	    SendClientMessage(playerid, COLOR_YELLOW, "You must be an Arms Dealer to use that command.");
	}
	return 1;
}
I was wondering how I would add in an if statement that would GetPlayerMoney and if said player was under a givin amount it would send them a message stating they would need more money
Reply


Messages In This Thread
Making a /getsteel command - by Awallpe86 - 04.10.2013, 00:08
Re: Making a /getsteel command - by Emmet_ - 04.10.2013, 00:10
Re: Making a /getsteel command - by Awallpe86 - 04.10.2013, 00:12
Re: Making a /getsteel command - by xganyx - 04.10.2013, 00:22
Re: Making a /getsteel command - by Awallpe86 - 04.10.2013, 00:24
Re: Making a /getsteel command - by xganyx - 04.10.2013, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)