How to Create a Pickup...
#1

How to Create a Pickup if someone pickup it its Show again after 5min or 10min

sorry for the suck english i hope you understand me :/
Reply
#2

pawn Код:
new expick;

forward ShowAgain();

public OnGameModeInit()
{
    expick = CreatePickup(model,type,Xpos,Ypos,Zpos,VirtualWorld);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == expick)
    {
        DestroyPickup(expick);
        SetTimer("ShowAgain",5000,false); // 5000 is 5min 10000 is 10min
    }
    return 1;
}

public ShowAgain()
{
    expick = CreatePickup(model,type,Xpos,Ypos,Zpos,virtualworld);
    return 1;
}
enjoy it
Reply
#3

Thank You + rep
Reply
#4

You can also make it by the pickup type like pickup type 2 , you can find the pickups type at : https://sampwiki.blast.hk/wiki/PickupTypes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)