11.09.2014, 15:28
how to make teleport through the checkpoint
new checkpoint;
checkpoint = CreateDynamicCP(x,y,z,float:size,-1,-1,-1,Float:range);
checkpoint = CreateDynamicCP(0,0,0,2.0,-1,-1,-1,100.0);
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == checkpoint)
{
//Put your code here
}
return 1;
}
at the top of your script:
pawn Код:
pawn Код:
pawn Код:
pawn Код:
make sure that you have streamer include and make sure that you typed #include <streamer> at the top of your script. you can download streamer from here: https://sampforum.blast.hk/showthread.php?tid=102865 |
public OnPlayerEnterDynamicCP(playerid, checkpointid) { if(checkpointid == checkpoint) { //Put your code here (and can code to write here how to write) } return 1; }
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == checkpoint)
{
REPLACE THIS CODE WITH YOUR CODE
}
return 1;
}