13.01.2014, 23:48
hey so i have this code but it does not work vip still get's locked out of vehicle....
thanks...
Код:
public OnPlayerEnterVehicle(playerid, vehicleid) { new model = GetVehicleModel(vehicleid); if(model == 425 && Player[playerid][class] != AIRFORCE || Player[playerid][viplevel] < 1 || model == 520 && Player[playerid][class] != AIRFORCE && Player[playerid][viplevel] < 1) { ClearAnimations(playerid); SendClientMessage(playerid, C_RED, "• You need the class Airforce to fly this vehicle(or V.I.P)!"); return 1; } if(model == 432 && Player[playerid][class] != HEAVY_GUNNER || Player[playerid][viplevel] < 1) { ClearAnimations(playerid); SendClientMessage(playerid, C_RED, "• You need the class Heavy Gunner drive this vehicle!(or V.I.P)"); return 1; } if(model == 416 && Player[playerid][class] != MEDIC || Player[playerid][viplevel] < 1) { ClearAnimations(playerid); SendClientMessage(playerid, C_RED, "• You need the class Medic drive this vehicle!(or V.I.P)"); return 1; } return 1; }