Help for create checkpoint! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help for create checkpoint! (
/showthread.php?tid=99941)
Help for create checkpoint! -
caldaia - 01.10.2009
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??
Re: Help for create checkpoint! -
Peter_Corneile - 01.10.2009
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;
}
Re: Help for create checkpoint! -
caldaia - 01.10.2009
thx soo much,i try that code
Re: Help for create checkpoint! -
Peter_Corneile - 01.10.2009
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
Re: Help for create checkpoint! -
caldaia - 01.10.2009
Checkpoint = SetPlayerCheckpoint(playerid, Float

,Float:y,Float:z,

;<---here i must insert the checkpoint coordinates right?
Re: Help for create checkpoint! -
Peter_Corneile - 01.10.2009
Yup and that 8 is the Checkpoint's radius(the sze of the checkpoint) .. I think the 8 will be fine
Re: Help for create checkpoint! -
[XST]O_x - 01.10.2009
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.
Re: Help for create checkpoint! -
Peter_Corneile - 01.10.2009
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
Re: Help for create checkpoint! -
Desert - 01.10.2009
OnGameModeInit doesn't have playerid defined
Re: Help for create checkpoint! -
[XST]O_x - 01.10.2009
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