Help for create checkpoint!
#1

Someone can help me for create a red checkpoint in a place,and when u go inside that checkpoint u be teleported in another place??
Reply
#2

pawn Код:
new Checkpoint[MAX_PLAYERS];
 
public OnGameModeInIt()
{
Checkpoint = SetPlayerCheckpoint(playerid, Float:x,Float:y,Float:z,8);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(Checkpoint[playerid] = 1)
{
SetPlayerPos(playerid,X,Y,Z); //The place you want to TP to
}
return 1;
}
Reply
#3

thx soo much,i try that code
Reply
#4

Quote:
Originally Posted by caldaia
thx soo much,i try that code
No Problem .. Tell me if you want the checkpoint to show on a command
Reply
#5

Checkpoint = SetPlayerCheckpoint(playerid, Float,Float:y,Float:z,;<---here i must insert the checkpoint coordinates right?
Reply
#6

Yup and that 8 is the Checkpoint's radius(the sze of the checkpoint) .. I think the 8 will be fine
Reply
#7

Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
I think the 8 will be fine
No!8 is huge,use 2
But if you want to use more then 1 checkpoint,i think that you will need a streamer.
Reply
#8

Quote:
Originally Posted by 3xPloSioNxXx
Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
I think the 8 will be fine
No!8 is huge,use 2
Hehe i thought 8 would be fine xD
Reply
#9

OnGameModeInit doesn't have playerid defined
Reply
#10

Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
Quote:
Originally Posted by 3xPloSioNxXx
Quote:
Originally Posted by Peter Corneile [hugu-hosting.co.uk
]
I think the 8 will be fine
No!8 is huge,use 2
Hehe i thought 8 would be fine xD
Im using size 2,and its the same size as the size of the mission checkpoints in sp :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)