Eject if player is driver. Car locks
#1

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:
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.");
  		}
      }
	}
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?
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)