Problem with license thing
#7

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vehicle = GetVehicleModel(GetPlayerVehicleID(playerid));
        if(IsAPlane(vehicle))
        {
            if(PlayerInfo[playerid][pPilotLic] < 1)
            {
                 new Float:pos[3];
                 RemovePlayerFromVehicle(playerid);
                 SendClientMessage(playerid, COLOR_ORANGE, "You cannot use this vehicle.");
            }
        }  
    }
    return 1;
}
Reply


Messages In This Thread
Problem with license thing - by bensmart469 - 24.12.2012, 11:09
Re: Problem with license thing - by Vince - 24.12.2012, 11:11
Re: Problem with license thing - by bensmart469 - 24.12.2012, 11:31
Re: Problem with license thing - by Mike_Peterson - 24.12.2012, 11:36
Re: Problem with license thing - by bensmart469 - 24.12.2012, 12:05
Re: Problem with license thing - by Mike_Peterson - 24.12.2012, 12:10
Re: Problem with license thing - by SKAzini - 24.12.2012, 12:17
Re: Problem with license thing - by bensmart469 - 24.12.2012, 13:00
Re: Problem with license thing - by bensmart469 - 24.12.2012, 13:21

Forum Jump:


Users browsing this thread: 2 Guest(s)