SA-MP Forums Archive
Pickup Minigame - 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)
+--- Thread: Pickup Minigame (/showthread.php?tid=398622)



Pickup Minigame - leetboi - 10.12.2012

Hi all, i am trying to make Pickup hunt Minigame
about game :
Server is spawning pickup on 1 location, when someone pickup the pickup server respawns the pickup at another location at 60seconds.
- Pickup Hunt - Pickup has been spawned near Motel Jefferson. Find him and you will get +1 score and 50000$.
So what is the problem, to me?
I dont know how to make that server makes only 1 pickup and when a player pickup that pickup that it respawns to another position.
Please help me. I will share the Minigame to you all


Re: Pickup Minigame - tsonn1 - 10.12.2012

You create a pickup, then under OnPlayerPickUpPickup(Or something like this):
pawn Код:
if(pickupid == UrPickupId)
    {
        DestroyPickup(UrPickupId);
        AddStaticPickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
        return 1;
    }
    return 1;
}