Help a bit here +rep
#8

pawn Код:
public IsATaxicar(carid)
{
    new model = GetVehicleModel(carid);
    if(model == 420 || model == 438)
    {
        return 1;
    }
    return 0;
}
There are 2 models of Taxis. You might be entering the other type.

Also check if the taxi job is 2. It could be some other ID?

pawn Код:
else if(newstate == PLAYER_STATE_DRIVER)
    {
       if ( IsATaxicar( GetPlayerVehicleID( playerid ) ) )
        {
            if( PlayerInfo[ playerid ][ pJob ] != 2 )
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_GREY,"You don't have keys of this car.");
            }
        }
    }
Reply


Messages In This Thread
Help a bit here +rep - by N0FeaR - 10.03.2012, 22:27
Re: Help a bit here +rep - by Basicz - 10.03.2012, 22:34
Re: Help a bit here +rep - by N0FeaR - 10.03.2012, 22:44
Re: Help a bit here +rep - by Baboon - 10.03.2012, 22:52
Re: Help a bit here +rep - by N0FeaR - 10.03.2012, 22:54
Re: Help a bit here +rep - by Basicz - 10.03.2012, 22:54
Re: Help a bit here +rep - by N0FeaR - 10.03.2012, 23:09
Re: Help a bit here +rep - by eesh - 11.03.2012, 04:54
Re: Help a bit here +rep - by Andi_Evandy - 11.03.2012, 06:36
Re: Help a bit here +rep - by N0FeaR - 11.03.2012, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)