Problem with license thing
#1

I have made my own pilot license script, but the problem is, that it is bugged. (before you ask the code that i put under onplayerentervehicle is below) The thing that is bugged is that it allows the person to enter the plane even if the person doesn't have a license. Anyone know how to fix this?
Code:
PHP код:
//under onplayerentervehicle
    
if(IsAPlane(vehicleid))
        {
            if(
PlayerInfo[playerid][pPilotLic] < 1)
            {
                 new 
Float:pos[3];
                 
GetPlayerPos(playeridpos[0], pos[1], pos[2]);
                 
SetPlayerPos(playeridpos[0], pos[1], pos[2]);
                  
SendClientMessage(playeridCOLOR_ORANGE"You cannot use this vehicle.");
            }
        } 
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)