How? - 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: How? (
/showthread.php?tid=514136)
How? -
Johnson_Brooks - 19.05.2014
How can i set checkpoint id's ? I want to have multiple checkpoints for entering stores and banks etc... but i dont know how i can make them have id's so i can create a different action for'em ?
Re: How? -
GuyYahood1 - 19.05.2014
Hey,
try this:
PHP код:
new CP_Bank;
//OnGameModeInit
CP_BANK = CreateDynamicCP(X,Y,Z,SIZE,-1, -1, -1, draw);
//OnPlayerEnterDynamicCP
if(checkpointid == CP_Bank)
{
//
}
Have fun
Re: How? -
Luis- - 19.05.2014
Obviously for that above code to work, you'll need Incognitos streamer plugin. Should of stated that in the above post.
Re: How? -
Johnson_Brooks - 21.05.2014
thank you both .