[HELP]Enter vehicle
#5

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if( newstate == PLAYER_STATE_DRIVER )
    {
        if( /* to check if the player ISNT alowed */ )
        {
            RemovePlayerFromVehicle( playerid );
            SendClientMessage( playerid, -1, "You are not allowed to enter this vehicle. " );
        }
        else
        {
            SendClientMessage( playerid, -1, "Welcome to the vehicle!" );
        }
    }
    return 1;
}
That will do the trick. Just change the if statement
Reply


Messages In This Thread
[HELP]Enter vehicle - by Tautwis - 03.01.2012, 15:41
Re: [HELP]Enter vehicle - by #Pwn. - 03.01.2012, 15:43
Re: [HELP]Enter vehicle - by Tautwis - 03.01.2012, 15:45
Re: [HELP]Enter vehicle - by #Pwn. - 03.01.2012, 15:46
Re: [HELP]Enter vehicle - by Wesley221 - 03.01.2012, 15:47
Re: [HELP]Enter vehicle - by Tautwis - 03.01.2012, 15:47
Re: [HELP]Enter vehicle - by Wesley221 - 03.01.2012, 15:51
Re: [HELP]Enter vehicle - by Tautwis - 03.01.2012, 15:59
Re: [HELP]Enter vehicle - by #Pwn. - 03.01.2012, 16:01
Re: [HELP]Enter vehicle - by Tautwis - 03.01.2012, 16:02

Forum Jump:


Users browsing this thread: 1 Guest(s)