Before the player enters the car
#4

Try this:

pawn Код:
if(IsAnFbiCar(newcar))
{
    if(!ispassenger)
    {
        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.");
        }
    }
}
This should go under, OnPlayerEnterVehicle
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)