[Help] Lock player into vehicle
#6

Change the 'VARIABLE' with your set variable. Whether it's stored in an enum or what-ever, simply replace it.

Example, in your enum you have lets say 'pLocked', it would then be:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(pLocked[playerid] == 1)
    {
        SendClientMessage(playerid, 0xFF0000FF, "You can not leave the vehicle.");
        PutPlayerInVehicle(playerid, vehicleid, GetPlayerVehicleSeat(playerid));
    }
    return 1;
}
Reply


Messages In This Thread
[Help] Lock player into vehicle - by Kenka - 13.07.2011, 12:57
Re: [Help] Lock player into vehicle - by Shadoww5 - 13.07.2011, 13:26
Re: [Help] Lock player into vehicle - by Kenka - 13.07.2011, 13:38
Re: [Help] Lock player into vehicle - by Kenka - 13.07.2011, 17:30
Re: [Help] Lock player into vehicle - by lawonama - 13.07.2011, 17:35
Re: [Help] Lock player into vehicle - by Kush - 13.07.2011, 17:37
Re: [Help] Lock player into vehicle - by crowb14 - 13.07.2011, 18:01
Re: [Help] Lock player into vehicle - by Toreno - 13.07.2011, 18:06
Re: [Help] Lock player into vehicle - by Kenka - 13.07.2011, 19:35
Re: [Help] Lock player into vehicle - by boelie - 13.07.2011, 19:49

Forum Jump:


Users browsing this thread: 3 Guest(s)