SA-MP Forums Archive
incognito cp problem - 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: incognito cp problem (/showthread.php?tid=346720)



incognito cp problem - Face9000 - 29.05.2012

Hello,i have a small problem with the checkpoints.I use incognito streamer and i coded a pizza job.The problem is at the last checkpoint,it doesn't destroy.I tried using "DisablePlayerCheckpoint" but doesn't work.Any tips?


Re: incognito cp problem - FalconX - 29.05.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Hello,i have a small problem with the checkpoints.I use incognito streamer and i coded a pizza job.The problem is at the last checkpoint,it doesn't destroy.I tried using "DisablePlayerCheckpoint" but doesn't work.Any tips?
pawn Код:
new CP_NAME_1; // declaring a global var

CP_NAME_1 = CreateDynamicCP( .. ); // creating it wherever you want CP_NAME_1 is checkpointid

DestroyDynamicCP( CP_NAME_1 ); // destroying it
It's like this. When you are using the default checkpoint system I don't think it will work with streamer functions/callbacks.

-FalconX


Re: incognito cp problem - Face9000 - 29.05.2012

Damn,i've 18 checkpoints for that pizza job,i've to create 18 checkpoints?

Or i can use just DestroyDynamicCp?


Re: incognito cp problem - Jonny5 - 29.05.2012

yes you need to store the ID of each CheckPoint so you can delete them.


Re: incognito cp problem - FalconX - 29.05.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Damn,i've 18 checkpoints for that pizza job,i've to create 18 checkpoints?

Or i can use just DestroyDynamicCp?
The proper way is, create all the checkpoints with Streamer plugin and destroy them with streamer plugin
-FalconX


Re: incognito cp problem - Face9000 - 29.05.2012

Ok thanks Falconx and also Jonny5.


Re: incognito cp problem - FalconX - 29.05.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
Ok thanks Falconx and also Jonny5.
No problem mate

-FalconX