07.12.2009, 15:35
I created a pickup and i want to know how to do this : If i wil pick the pickup it will be destroyed ...but i dont know ,how to create timer what will recreate the pickup after cca 15minutes .... thank
new MyPickup; public OnGameModeInit() { MyPickup = CreatePickup(lalalalalallala); } public OnGameModeExit() { DestroyPickup(MyPickup); } public OnPlayerPickUpPickup(playerid,pickupid) { if(pickupid == MyPickup) { ...what the pickup should do SetTimerEx("PickupRespawn", Time, false, "d"); //https://sampwiki.blast.hk/wiki/SetTimerEx DestroyPickup(MyPickup); } } forward PickupRespawn() { MyPickup = CreatePickup(lalalalalallala); return 1; }