Menu script help , please
#1

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!
Reply
#2

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);
}
Reply
#3

yay dude thnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)