SA-MP Forums Archive
Multiple 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: Multiple Checkpoints (/showthread.php?tid=380005)



Multiple Checkpoints - GXLZPGX - 23.09.2012

Alright, so here's the basic issue description. I'm creating a checkpoint for a player when he spawns, that I want to be CONSTANT, but only visible on their radar/screen within a specific distance. I know how to assign a checkpoint to a specific variable/array, but is there a function to disable specific checkpoints for players?


Re: Multiple Checkpoints - Squirrel - 23.09.2012

Download streamer and then use like

pawn Код:
#include <streamer>

public OnPlayerSpawn( playerid )
{
   CreateDynamicCP( playerid, 0.00, 0.00, 0.00, 5.0 );
   CreateDynamicCP( playerid, 1.00, 1.00, 1.00, 5.0 );
   CreateDynamicCP( playerid, 2.00, 2.00, 2.00, 5.0 );
   return 1;
}



Re: Multiple Checkpoints - GXLZPGX - 23.09.2012

Quote:
Originally Posted by Squirrel
Посмотреть сообщение
Download streamer and then use like

pawn Код:
#include <streamer>

public OnPlayerSpawn( playerid )
{
   CreateDynamicCP( playerid, 0.00, 0.00, 0.00, 5.0 );
   CreateDynamicCP( playerid, 1.00, 1.00, 1.00, 5.0 );
   CreateDynamicCP( playerid, 2.00, 2.00, 2.00, 5.0 );
   return 1;
}
Thanks, I looked up the function

pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
But what exactly is "worldid" and "interiorid"?


Re: Multiple Checkpoints - TheArcher - 23.09.2012

Quote:
Originally Posted by GXLZPGX
Посмотреть сообщение
Thanks, I looked up the function

pawn Код:
CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
But what exactly is "worldid" and "interiorid"?
Worldid its like changing the player/s world Take a look at this, most of the interiors around San Andreas has different ids that's why you have to specfiy it. Like CJ's house and Clothes Shot different IDs. Look at this


Re: Multiple Checkpoints - GXLZPGX - 23.09.2012

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
Worldid its like changing the player/s world Take a look at this, most of the interiors around San Andreas has different ids that's why you have to specfiy it. Like CJ's house and Clothes Shot different IDs. Look at this
Ah, I know how that works. Thanks a ton!