[SOLVED]Get Player Money
#1

well, i want it so if the guy doesn't have enough money he doesn't go into -

Код:
if (strcmp("/buygun ak47", cmdtext, true) == 0)
	{
		if(GetPlayerMoney(playerid) == 0)
		{
    SendClientMessage(playerid,0xAA3333AA, "Fuck you , you dont have the money");
    }
    else
    {
		SendClientMessage(playerid,0xAA3333AA, "Thank you for buying an Ak47,have fun with it");
		GivePlayerMoney(playerid,-3500);
		GivePlayerWeapon(playerid,30,470);
		}
	 }
  return 1;
}
Reply


Messages In This Thread
[SOLVED]Get Player Money - by Criss_Angel - 11.08.2009, 20:40
Re: Get Player Money - by RyDeR` - 11.08.2009, 20:45
Re: Get Player Money - by RyDeR` - 11.08.2009, 20:47
Re: [SOLVED]Get Player Money - by radi - 11.08.2009, 21:12
Re: [SOLVED]Get Player Money - by RyDeR` - 11.08.2009, 21:39
Re: [SOLVED]Get Player Money - by Davz*|*Criss - 08.03.2011, 21:45

Forum Jump:


Users browsing this thread: 2 Guest(s)