Certain score to enter vehicles
#3

Well first of all, you should check the state before the model.

Second of all, model != id. Vehicle ID and vehicle model are two different things. What you want is model.

Here's an example:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if( newstate == PLAYER_STATE_DRIVER )
    {
        if( GetVehicleModel( GetPlayerVehicleID( playerid )) == 432 )
        {
            if(GetPlayerScore(playerid) < 1500)
            {
                RemovePlayerFromVehicle( playerid );
                GameTextForPlayer( playerid, "~r~~h~1500+~b~ Score Needed!", 3000, 3 );
            }
        }
    }
    return true;
}
Reply


Messages In This Thread
Certain score to enter vehicles - by Eminem 2ka9 - 01.03.2013, 18:48
Re: Certain score to enter vehicles - by Patrick - 01.03.2013, 18:53
Re: Certain score to enter vehicles - by LarzI - 01.03.2013, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)