Eject if player is driver. Car locks
#3

pawn Code:
if(vteam[GetPlayerVehicleID(playerid)] == 1) {
    if(PlayerInfo[playerid][Fmember] == 1 || PlayerInfo[playerid][Fleader] == 1) SendClientMessage(playerid, 0x999999AA, "You started this police car!");
    else {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
            RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
            SendClientMessage(playerid, 0x999999AA, "You don't have the key of this vehicle.");
        }
    }
}
Reply


Messages In This Thread
Eject if player is driver. Car locks - by milanosie - 14.01.2012, 11:53
Re: Eject if player is driver. Car locks - by spedico - 14.01.2012, 13:00
Re: Eject if player is driver. Car locks - by Mean - 14.01.2012, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)