Posts: 455
Threads: 83
Joined: Nov 2009
Reputation:
0
Greetings, I need some help,
I am at the moment experimenting a bit with Pawn again.
What i would like help with is;
Creating a checkpoint, if u walk in to it you get teleported to interior X
is this possible, and is this hard to make?
is there a dynamic way for doing this?
~yvoms
Posts: 455
Threads: 83
Joined: Nov 2009
Reputation:
0
Im making a small cops n robbers script.
in las venturas there are multiple stores,
I want a player to walk into a checkpoint get teleported to an interior,
In the interior i want a checkpoint to teleport them out.
Is this hard?
Posts: 115
Threads: 4
Joined: Nov 2012
Reputation:
0
no, if he's using the Stevo127 GameMode as a base, it's a little bit difficult !
Cause stevo uses a Checkpoint Streamer wich shows a checkpoints in a range of point, he use the Checkcoords tu use this,
look, you have to define the checkpoint at first, look after the others #define CP_XXX x
and add your checkpoint,
after that, you have two float,
search :
float:Checkcoord
at the end of this float, add the checkcoords of your checkpoint !
after that,
search :
float:Checkpoint
at the end, add the XYZ coordinates of your CheckPoint
then, at the bottom of this float, you will find multiple Lines with the CP names :
at the end, add the name of your checkpoint
THEN
go to the callback OnPlayerEnterCheckpoint
and add :
if(checkpointid == CP_YOURCP)
{
SetPlayerInterior(playerid,the id of the interior);
SetPlayerPos(playerid,the XYZ pos to TP);
SetCameraBehindThePlayer(playerid);
SendClientMessage(playerid, -1, "HERE YOU ARE ! CONGRATULATIONS !");
return 1;
}
hope you'll understand !