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: Checkpoint (
/showthread.php?tid=68475)
Checkpoint -
Schock - 10.03.2009
hey guys i create a new FS and i need some help
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if (checkpoint == Turismo) // this
{
DisablePlayerCheckpoint(playerid);
return 1;
}
}
i need some help that "this" work only if the player enter the checkpoint with a turismo
can someone help me?
Re: Checkpoint -
Nero_3D - 10.03.2009
1. define you checkpoints
2. use GetVehicleModel
Re: Checkpoint -
Schock - 10.03.2009
^^ i defined it its only a part of my script
Re: Checkpoint -
Nero_3D - 10.03.2009
ah ok, so you just need to use GetVehicleModel
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == TURISMO) //the modelid of turismo is 451 (if you dont know)
{
}