14.01.2012, 11:53
Hello there, Me and a friend are making a new gamemode but I have a li'l question.
For the vehicle locks I use this code:
But now, Even passengers who aren't Fmember == 1 get ejected, How do I make it so that only the driver gets ejected from the car when he is no fMember 1?
For the vehicle locks I use this code:
Code:
{ if(vteam[GetPlayerVehicleID(playerid)] == 1) { if(PlayerInfo[playerid][Fmember] == 1 || PlayerInfo[playerid][Fleader] == 1) { SendClientMessage(playerid, 0x999999AA, "U started this police car!"); } else { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); SendClientMessage(playerid, 0x999999AA, "You don't have the key of this vehicle."); } } }