Trunk system
#4

pawn Код:
if(dialogid == DIALOG_TAKE) // Take items from trunk
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(response)
        {
            if(listitem == 0) // Slot 1
            {
                GivePlayerWeapon(playerid,iTrunk[vehicleid][tWeapon1],iTrunk[vehicleid][tAmmo1]);
            }
        }
        return 1;
    }
Okay this is the code.. but player can now take same weapon out of trunk unlimited times how can I make so players can take this weapon out of trunk only once ?
Reply


Messages In This Thread
Trunk system - by Lajko1 - 16.02.2014, 14:30
Re: Trunk system - by Lajko1 - 16.02.2014, 20:29
Re: Trunk system - by Lajko1 - 16.02.2014, 20:31
Re: Trunk system - by Lajko1 - 16.02.2014, 21:51
Re: Trunk system - by Jimmy0wns - 16.02.2014, 21:53
Re: Trunk system - by Lajko1 - 16.02.2014, 22:04
Re: Trunk system - by JJB562 - 16.02.2014, 22:39
Re: Trunk system - by Threshold - 17.02.2014, 00:46
Re: Trunk system - by Lajko1 - 17.02.2014, 13:34
Re: Trunk system - by Lajko1 - 17.02.2014, 19:28

Forum Jump:


Users browsing this thread: 2 Guest(s)