Define Checkpoint - 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: Define Checkpoint (
/showthread.php?tid=332624)
Define Checkpoint -
Gooday - 08.04.2012
I'm making some missions for the "pizza pony"
How could i define a checkpoint?
/Startmissions : CreateCheckpoint: Checkpoint Name: = Pizza 1 And on player enter checkpoint give him 100$ ?
Re: Define Checkpoint -
Roel - 08.04.2012
new checkpointid; // at top of gamemode.
checkpointid = createcheckpoint.... // ongamemodeinit
onplayerpickupcheckpoint:
Код:
if(pickup == checkpointid)
{
//100$
}