Checkpoint
#1

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?
Reply
#2

1. define you checkpoints
2. use GetVehicleModel
Reply
#3

^^ i defined it its only a part of my script
Reply
#4

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)
{
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)