Before the player enters the car
#1

i wanna check something if the player want to enter the car as a driver i did something like that:
if(IsAnFbiCar(newcar))
{
if(PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2)
{
SendClientMessage(playerid, COLOR_WHITE,"Welcome to FBI vehicle.");
}
else
{
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_WHITE,"You don't have keys of this vehicle.");
}
}

but it's not good, how can i add a check after they press ENTER or F.
Reply


Messages In This Thread
Before the player enters the car - by PaulDinam - 23.09.2012, 08:28
Re: Before the player enters the car - by xMCx - 23.09.2012, 08:33
Re: Before the player enters the car - by PaulDinam - 23.09.2012, 08:44
Re: Before the player enters the car - by Riddy - 23.09.2012, 08:47
Re: Before the player enters the car - by PaulDinam - 23.09.2012, 10:41
Re: Before the player enters the car - by clarencecuzz - 23.09.2012, 10:48
Re: Before the player enters the car - by mamorunl - 23.09.2012, 11:16
Re: Before the player enters the car - by clarencecuzz - 23.09.2012, 11:24
Re: Before the player enters the car - by PaulDinam - 23.09.2012, 11:45
Re: Before the player enters the car - by clarencecuzz - 23.09.2012, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)