SA-MP Forums Archive
Dynamic CP - 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: Dynamic CP (/showthread.php?tid=647066)



Dynamic CP - lNoobOnDutyl - 29.12.2017

Hey,

Probably a very nub mistake here but
Код:
PlaneCheck[playerid][0] = CreateDynamicCP(-180.1399,-2571.9312,36.1735, 2, 0, 0, -1, 300, 100, 0);
Doesn't seem to set a checkpoint.

Thnx in advance


Re: Dynamic CP - RogueDrifter - 29.12.2017

Код:
native STREAMER_TAG_CP CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_CP_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
=========


Re: Dynamic CP - lNoobOnDutyl - 29.12.2017

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
Код:
native STREAMER_TAG_CP CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_CP_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0);
see that, you fucked up the parameters, change the 2 to -1 unless if you only want it to show in virtual world 2, the 0 after that is the interior id so its only gonna be at interior 0, change the 0 after it to -1 unless if you only want it to show for playerid 0 , change the -1 to the stream distance probably you meant that to be 300? then read the rest of the params and debate on it the 300 and 100 and the 0 (priority).
The 2 = Float: size :/


Re: Dynamic CP - Ritzy2K - 29.12.2017

Haven't really worked with checkpoints a lot.
But pretty sure this is the issue -

Код:
PlaneCheck[playerid][0] = CreateDynamicCP(-180.1399,-2571.9312,36.1735, 2, 0, 0, -1, 300, 100, 0);
your -1 is the playerid arguement. I think you need to change it to playerid


Re: Dynamic CP - lNoobOnDutyl - 29.12.2017

Quote:
Originally Posted by Ritzy
Посмотреть сообщение
Haven't really worked with checkpoints a lot.
But pretty sure this is the issue -

Код:
PlaneCheck[playerid][0] = CreateDynamicCP(-180.1399,-2571.9312,36.1735, 2, 0, 0, -1, 300, 100, 0);
your -1 is the playerid arguement. I think you need to change it to playerid
Already thought that might be it but to no avail


Re: Dynamic CP - Ritzy2K - 29.12.2017

Owh. Weird. >.> Are you sure those coordinates are fine? Try at some other coords with same setting >.>


Re: Dynamic CP - lNoobOnDutyl - 29.12.2017

Tried it on a flat surface like a road in ls but nothing :/


Re: Dynamic CP - RogueDrifter - 29.12.2017

Owh shit i didn't notice that lol mb, well... are you sure that you're at world id 0 when you're at the checkpoint? and interior id 0 too?


Re: Dynamic CP - NaS - 29.12.2017

The areaid parameter is set to 100.

This will enable the checkpoint only for players that are in area ID 100, which is probably wrong in this case.
Set it to -1 or leave it away completely (the next parameter can also be left out as it's optional and not required here).