Checkpoints - 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: Checkpoints (
/showthread.php?tid=292700)
Checkpoints -
manchestera - 24.10.2011
How can i make a check point dissappear after soon long, i had a look at SetTimerex but not to sure how to implent it.
Re: Checkpoints -
[MWR]Blood - 24.10.2011
Have a look at the wiki -
https://sampwiki.blast.hk/wiki/SetTimerEx
You need to make a new callback which will be getting called by the timer.
In the callback, you will have to destroy the checkpoint -
https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint
Re: Checkpoints -
Yahav - 24.10.2011
You mean that if he went to the checkpoint it will disappear?
Re: Checkpoints -
manchestera - 24.10.2011
Do you have any over exmaples as i cant figure out how to change it to work with "DestoryCheckpoint" and "DisablePlayerCheckpoit".
Many Thanks.
Re: Checkpoints -
manchestera - 24.10.2011
Quote:
Originally Posted by Yahav
You mean that if he went to the checkpoint it will disappear?
|
No i mean that after a certian amount of time it would dissappear if it has not be reached.
Re: Checkpoints -
manchestera - 24.10.2011
Ok ive havent tried to put it in my script yet as im dont full understand the Settimerex i dont understand what to put here where this text is "is", 1337, "hello!.
Код:
forward Challange1();
public OnGameModeInit()
{
print("You Have 30 Seconds To Get To The Checkpoint GO GO GO!!!!!!!");
SetTimerEx("Challange1", 30000, false, "is", 1337, "hello!");
}
public Challange1(second, msg[])
{
DestoryCheckpoint(Challange1);
DisablePlayerCheckpoit(playerid);
return 1;
}