SA-MP Forums Archive
Menu script help , please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Menu script help , please (/showthread.php?tid=78940)



Menu script help , please - pumpkin - 24.05.2009

Well okay , here is my script :


Код:
    case 0: //Shotgun
    {
			if(GetPlayerMoney(playerid) < 1000)
			SendClientMessage(playerid, COLOR_WHITE, "You must have atleast 1000$ to use this feature!");
			GivePlayerMoney(playerid,-1000);
      GivePlayerWeapon(playerid,25,50);
      SendClientMessage(playerid, 0xFFFFFFFF, "Use it wisely.");
      TogglePlayerControllable(playerid, true);
the thing is , i want to make it payable , etc i buy a shotgun for 1000$ but when i dont have 1000$ then there should come message :You must have atleast 1000$ to use this feature! and weapon shouldnt come ....


idk did ya understand me or not but well ... here is picture to

/imageshack/img37/8513/samp001q.png

OFFTOPIC : I AM NOT DRUNK!


Re: Menu script help , please - Lorrden - 24.05.2009

pawn Код:
case 0:
{
    if(GetPlayerMoney(playerid) < 1000)
    {
        SendClientMessage(playerid, COLOR_WHITE, "You must have atleast 1000$ to use this feature!");
        return TogglePlayerControllable(playerid, true);   
    }  
    GivePlayerMoney(playerid,-1000);
    GivePlayerWeapon(playerid,25,50);
    SendClientMessage(playerid, 0xFFFFFFFF, "Use it wisely.");
    TogglePlayerControllable(playerid, true);
}



Re: Menu script help , please - pumpkin - 24.05.2009

yay dude thnx