Need a little help.
#1

When the passengers get into the taxi (instead of the driver), the command refused to enter the taxi and it says "You are not a Taxi Driver" it means that you have to become the taxi driver first to get into the vehicle. How to make it possible for a passengers to get into the taxi without joining the Taxi Driver job first, and forbidden for them to enter the 1st seat driver.

my public OnPlayerEnterVehicle
PHP код:
    if(PlayerInfo[playerid][pJobTaxi] == 1)
    {
        }
    else {
        if(
modelid == 420 || modelid == 438)
        {
            
RemovePlayerFromVehicle(playerid);
            
ClearAnimations(playerid);
            return 
SendClientMessage(playerid0xFF0000FF"You are not a Taxi Driver");
        }
        else if(
modelid == 420 || modelid == 438){
             
PutPlayerInVehicle(playeridvehicleid1);
        }
    } 
Thanks before.
Reply


Messages In This Thread
Need a little help. - by Jihanz - 28.03.2017, 05:31
Re: Need a little help. - by Sew_Sumi - 28.03.2017, 06:42
Re: Need a little help. - by Jihanz - 28.03.2017, 06:46
Re: Need a little help. - by Feynman - 28.03.2017, 07:19
Re: Need a little help. - by Jihanz - 28.03.2017, 08:46

Forum Jump:


Users browsing this thread: 2 Guest(s)