04.10.2013, 00:08
ok here is what i have so far
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
Код:
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;
}

