Help pls ... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help pls ... (
/showthread.php?tid=112424)
Help pls ... -
Sliper - 07.12.2009
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
Re: Help pls ... -
DeathOnaStick - 07.12.2009
Click(Timer)
Click(Destroy a Pickup)
Re: Help pls ... -
[Marevin*] - 07.12.2009
Something like this?
Код:
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;
}
Modify it as you need of course.