SA-MP Forums Archive
lock in car - 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: lock in car (/showthread.php?tid=121226)



lock in car - bluray - 16.01.2010

hey im having a race track thing in my server and i wanted to know is there a way to lock some one in the car . so like they can drive it and stuff but cant get out until they go to the pits.


Re: lock in car - Calgon - 16.01.2010

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(PlayerInRace[playerid] == 1)
    {
        PutPlayerInVehicle(playerid, vehicleid, 0);
    }
    return 1;
}
You'll probably have another variable or something, you'll also want to verify that they're in the pit, mine simply slams them back in if a variable's value is 1.