If IsPlayerInVehicle
#1

Hi I need help with placing a checkpoint that appears if you in a vehicle ID

If have do this but this is not the good way
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(IsPlayerInVehicle(playerid, [B]Boot[/B]))
{
SetPlayerCheckpoint(playerid, -2971.8198, 497.0827, 0.1410, 4.0); //FIX
}
return 1;
}
Reply
#2

What is Boot? Where do you assign to it?
Reply
#3

Boot is the vehicle ID Boot is in Dutch boat
Reply
#4

Well, in that case your code is valid. In case you want this only for driver, you have to use https://sampwiki.blast.hk/wiki/OnPlayerStateChange
Reply
#5

Solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)