OnPlayerPickupPickup
#1

Hello everyone,I'm here with a new little problem! I want to add some pickups on my script that gives some shit to the players that picking them.So... the problem is,what I could do if I want the player to pickup it once,not twice or much more times?
pawn Код:
new tiki
pawn Код:
tiki = CreatePickup(1276, 23, 1583.34, -1640.16, 13.18, -1);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == tiki)
    {
        PlayerInfo[playerid][pExp]++;
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerPickupPickup - by VikThor - 16.12.2014, 17:31
Re: OnPlayerPickupPickup - by Divergent - 16.12.2014, 17:34
Re: OnPlayerPickupPickup - by dominik523 - 16.12.2014, 17:36
Re: OnPlayerPickupPickup - by VikThor - 16.12.2014, 18:01
Re: OnPlayerPickupPickup - by Divergent - 16.12.2014, 18:03
Re: OnPlayerPickupPickup - by VikThor - 16.12.2014, 18:06
Re: OnPlayerPickupPickup - by VikThor - 16.12.2014, 18:17
Re: OnPlayerPickupPickup - by M4D - 16.12.2014, 18:21
Re: OnPlayerPickupPickup - by dominik523 - 16.12.2014, 18:21
Re: OnPlayerPickupPickup - by VikThor - 16.12.2014, 18:22

Forum Jump:


Users browsing this thread: 7 Guest(s)