lock in car
#1

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)