29.10.2010, 13:19
You could make an stock:
How to use it:
Btw, you might want to check out my fresh tutorial https://sampforum.blast.hk/showthread.php?tid=186495
pawn Код:
stock IsVehicleLocked(vehicleid)
{
if(vInfo[vehicleid][Locked] == 1) return 1;
return 0;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(IsVehicleLocked(vehicleid))
{
// Do shit if the vehicle is locked.
}
}

