CMD:mh(playerid,params[]){ new vehicleid = GetPlayerVehicleID(playerid);if(IsPlayerInAnyVehicle(playerid)){if(vehicleid < 47 || vehicleid > 50){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(vInfo[vehicleid][MOTORHAZTETO] == 0) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,1,boot,objective); SendClientMessage(playerid, NARANCS, \"Kinyitottad a motorháztetőt!\"); vInfo[vehicleid][MOTORHAZTETO] = 1; } else { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,0,boot,objective); SendClientMessage(playerid, NARANCS, \"Becsuktad a motorháztetőt!\"); vInfo[vehicleid][MOTORHAZTETO] = 0; } }}}return 1;}
CMD:csominyit(playerid,params[]){ new vehicleid = Kozelikocsi(playerid);if(vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][VEHICLE_ID] == GetPlayerVehicleID(playerid) || vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][VEHICLE_ID2] == GetPlayerVehicleID(playerid) || vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][KVEHICLE_ID] == GetPlayerVehicleID(playerid) || vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && AdminSzoliban[playerid] == 1 || vInfo[GetPlayerVehicleID(playerid)][sOLD] == 2 && AdminSzoliban[playerid] == 1) {if(vInfo[vehicleid][LOCKED] == 1) cmd_do(playerid, \"A jármű zárva.\");{if(vehicleid < 47 || vehicleid > 50){ if(vInfo[ vehicleid ][ CSOMAGTARTO ] == 0) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,1,objective); SendClientMessage(playerid, NARANCS, \"Kinyitottad a csomagtartót!\"); vInfo[ vehicleid ][ CSOMAGTARTO ] = 1; } else { SendClientMessage(playerid, PIROS, \"((Már nyitva van a csomagtartó!))\"); }}else{ SendClientMessage(playerid, PIROS, \"Nincs kulcsod a járműhöz!\");}}}return 1;}
CMD:mh(playerid,params[]){ new vehicleid = GetPlayerVehicleID(playerid);if(IsPlayerInAnyVehicle(playerid)){ if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(vInfo[vehicleid][MOTORHAZTETO] == 0) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,1,boot,objective); SendClientMessage(playerid, NARANCS, \"Kinyitottad a motorháztetőt!\"); vInfo[vehicleid][MOTORHAZTETO] = 1; } else { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,0,boot,objective); SendClientMessage(playerid, NARANCS, \"Becsuktad a motorháztetőt!\"); vInfo[vehicleid][MOTORHAZTETO] = 0; } }}return 1;}
CMD:csominyit(playerid,params[]){ new vehicleid = Kozelikocsi(playerid);if(vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][VEHICLE_ID] == GetPlayerVehicleID(playerid) || vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][VEHICLE_ID2] == GetPlayerVehicleID(playerid) || vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][KVEHICLE_ID] == GetPlayerVehicleID(playerid) || vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && AdminSzoliban[playerid] == 1 || vInfo[GetPlayerVehicleID(playerid)][sOLD] == 2 && AdminSzoliban[playerid] == 1) {if(vInfo[vehicleid][LOCKED] == 1) cmd_do(playerid, \"A jármű zárva.\");{ if(vInfo[ vehicleid ][ CSOMAGTARTO ] == 0) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,1,objective); SendClientMessage(playerid, NARANCS, \"Kinyitottad a csomagtartót!\"); vInfo[ vehicleid ][ CSOMAGTARTO ] = 1; } else { SendClientMessage(playerid, PIROS, \"((Már nyitva van a csomagtartó!))\"); }}else{ SendClientMessage(playerid, PIROS, \"Nincs kulcsod a járműhöz!\");}}return 1;}
else { SendClientMessage(playerid, PIROS, \"Nincs kulcsod a járműhöz!\"); } } return 1;}
CMD:mh(playerid,params[]){ new vehicleid = GetPlayerVehicleID(playerid);if(IsPlayerInAnyVehicle(playerid)){if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){ new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); if(bonnet == 0) { SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,1,boot,objective); SendClientMessage(playerid, NARANCS, \"Kinyitottad a motorháztetőt!\"); vInfo[vehicleid][MOTORHAZTETO] = 1; } else { SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,0,boot,objective); SendClientMessage(playerid, NARANCS, \"Becsuktad a motorháztetőt!\"); vInfo[vehicleid][MOTORHAZTETO] = 0; }}}return 1;}
CMD:csominyit(playerid,params[]){new vehicleid = Kozelikocsi(playerid);if(vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][VEHICLE_ID] == GetPlayerVehicleID(playerid) ||vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][VEHICLE_ID2] == GetPlayerVehicleID(playerid) ||vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && pInfo[playerid][KVEHICLE_ID] == GetPlayerVehicleID(playerid) ||vInfo[GetPlayerVehicleID(playerid)][sOLD] == 1 && AdminSzoliban[playerid] == 1 ||vInfo[GetPlayerVehicleID(playerid)][sOLD] == 2 && AdminSzoliban[playerid] == 1){if(vInfo[vehicleid][LOCKED] == 1) cmd_do(playerid, \"A jármű zárva.\");{new engine,lights,alarm,doors,bonnet,boot,objective;GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);if(boot == 0){ SetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,1,objective); SendClientMessage(playerid, NARANCS, \"Kinyitottad a csomagtartót!\"); vInfo[ vehicleid ][ CSOMAGTARTO ] = 1;}else{ SendClientMessage(playerid, PIROS, \"((Már nyitva van a csomagtartó!))\");}}return 1;}