Problem With Pickups
#1

Hello Guys i made a Pickup but it get Disappears After someone Pick It Up
i want it there always
l dont want it to get disappear after someone picks it up
pawn Код:
new nrgpickup; //on the top

nrgpickup = CreatePickup(1318, 22, 2405.1450,1438.6797,18.7639,-1); //Hospital Enter Pickup.//under ongamemodeinit

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == nrgpickup)
    {
        new Float:X,Float:Y,Float:Z,Float:A;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle(playerid,A);
        Car = CreateVehicle(411,X,Y,Z,A,1,1);
        PutPlayerInVehicle(playerid,Car,0);
        SendClientMessage(playerid, COLOR_GREEN, "You have Successfully Spawned A NRG-500");
        return 1;
    }
    return 1;
}
Reply
#2

Aren't pickups supposed to disappear when they are picked up? That's sort of the point of pick ups..
Reply
#3

Not exactly i have seen some server's with the pickups
that stay's there for evar
Reply
#4

In create pickup, change 22 to 1 - type 1 exists always.
Reply
#5

Yup its working Thnk You Soo Much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)