public OnPlayerStateChange(playerid, newstate, oldstate){new CAR = GetVehicleModel(GetPlayerVehicleID(playerid));if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER){ if(CAR == 425 || CAR == 432 || CAR == 433 || CAR == 470 || CAR == 520) ////// | KATONASÁG | //////{ if(IsPlayerLAdmin(playerid) >= 5) { SendClientMessage(playerid, COLOR_GREEN, \"Katonai gépjármûhöz való engedély: {0000BB}elfogadva.\"); } else { SendClientMessage(playerid, COLOR_ULTRARED, \"HIBA: Nem vagy rendõr vagy alacsony a rangod.\"); RemovePlayerFromVehicle(playerid); }}}{if(CAR == 490) ////// | FBI | //////{ if(IsPlayerLAdmin(playerid) >= 4) { SendClientMessage(playerid, COLOR_GREEN, \"Kocsi beindítva, indulhatsz is!\"); } else { SendClientMessage(playerid, COLOR_ULTRARED, \"HIBA: Nem vagy rendõr vagy alacsony a rangod.\"); RemovePlayerFromVehicle(playerid); }}}{ if(CAR == 427 || CAR == 447 || CAR == 528 || CAR == 548 || CAR == 601) ////// | KOMMANDÓ | //////{ if(IsPlayerLAdmin(playerid) >= 3) { SendClientMessage(playerid, COLOR_GREEN, \"A jármû készen áll a bevetésre!\"); } else { SendClientMessage(playerid, COLOR_ULTRARED, \"HIBA: Nem vagy rendõr vagy alacsony a rangod.\"); RemovePlayerFromVehicle(playerid); }}}{ if(CAR == 497 || CAR == 523 || CAR == 596 || CAR == 597 || CAR == 598 || CAR == 599 || CAR == 430) ////// | JÁRÕR | //////{ if(IsPlayerLAdmin(playerid) >= 2) { SendClientMessage(playerid, COLOR_GREEN, \"Gépjármû beindítva, jó munkát!\"); } else { SendClientMessage(playerid, COLOR_ULTRARED, \"HIBA: Nem vagy rendõr vagy alacsony a rangod.\"); RemovePlayerFromVehicle(playerid); }}}return 1;}
public OnPlayerStateChange(playerid, newstate, oldstate){new CAR = GetVehicleModel(GetPlayerVehicleID(playerid));if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER){ if(CAR == 425 || CAR == 432 || CAR == 433 || CAR == 470 || CAR == 520) ////// | KATONASÁG | //////{ if(IsPlayerLAdmin(playerid) >= 5) { SendClientMessage(playerid, COLOR_GREEN, \"Katonai gépjármûhöz való engedély: {0000BB}elfogadva.\"); } else { SendClientMessage(playerid, COLOR_ULTRARED, \"HIBA: Nem vagy rendõr vagy alacsony a rangod.\"); RemovePlayerFromVehicle(playerid); }}else if(CAR == 490) ////// | FBI | //////{ if(IsPlayerLAdmin(playerid) >= 4) { SendClientMessage(playerid, COLOR_GREEN, \"Kocsi beindítva, indulhatsz is!\"); } else { SendClientMessage(playerid, COLOR_ULTRARED, \"HIBA: Nem vagy rendõr vagy alacsony a rangod.\"); RemovePlayerFromVehicle(playerid); }}else if(CAR == 427 || CAR == 447 || CAR == 528 || CAR == 548 || CAR == 601) ////// | KOMMANDÓ | //////{ if(IsPlayerLAdmin(playerid) >= 3) { SendClientMessage(playerid, COLOR_GREEN, \"A jármû készen áll a bevetésre!\"); } else { SendClientMessage(playerid, COLOR_ULTRARED, \"HIBA: Nem vagy rendõr vagy alacsony a rangod.\"); RemovePlayerFromVehicle(playerid); }}else if(CAR == 497 || CAR == 523 || CAR == 596 || CAR == 597 || CAR == 598 || CAR == 599 || CAR == 430) ////// | JÁRÕR | //////{ if(IsPlayerLAdmin(playerid) >= 2) { SendClientMessage(playerid, COLOR_GREEN, \"Gépjármû beindítva, jó munkát!\"); } else { SendClientMessage(playerid, COLOR_ULTRARED, \"HIBA: Nem vagy rendõr vagy alacsony a rangod.\"); RemovePlayerFromVehicle(playerid); }}}return 1;}