04.06.2014, 17:17
Something like this: (This is just a quick example on how it should look like, this hasn't been tested)
pawn Код:
if(IsPlayerInVehicle(playerid, NoobVehicle[1]) || IsPlayerInVehicle(playerid, NoobVehicle[2]) || IsPlayerInVehicle(playerid, NoobVehicle[3]))
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(PlayerInfo[playerid][pLevel] > 3) //This means: If the player is above level 3 it will execute the code between the brackets.
{
new Float:fX, Float:fY, Float:fZ; //Remove this if you already have these variables.
GetPlayerPos(playerid,fX,fY,fZ);
SetPlayerPos(playerid,fX,fY,fZ+1);
}
}
}