CMD:ajto(playerid, params[], vehicleid , ispassenger){if (Rendork(vehicleid) && !ispassenger){ new engine,lights,alarm,doors,bonnet,boot,objective; new VehID = GetPlayerVehicleID(playerid); new Float:x, Float:y, Float:z; new VehPos = GetVehiclePos(vehicleid, x, y, z); if(vEngine[VehID] == 0) { if(IsPlayerInRangeOfPoint(VehID, 17.0, VehPos, x, y, z)) GetVehicleParamsEx(VehID,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(VehID,engine,lights,alarm,1,bonnet,boot,objective); SendClientMessage(playerid, 0x5eff00AA, \"Ajtók bezárva!\"); vEngine[VehID] = 1; } else if(vEngine[VehID] == 1) { if(IsPlayerInRangeOfPoint(VehID, 17.0, VehPos, x, y, z)) GetVehicleParamsEx(VehID,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(VehID,engine,lights,alarm,0,bonnet,boot,objective); SendClientMessage(playerid, 0x6fff00AA, \"Ajtók kinyitva!\"); vEngine[VehID] = 0; }}else return SendClientMessage(playerid,COLOR_PURPLE,\"Nincs kulcsod a jármûhöz!\");return 1;}public Rendork(carid){if((carid >= && (carid <= 23)){return 1;}return 0; }
if(VehID == 8 | VehiID == 9 stb..
if(VehID >= 8 | VehID <= 16
if(GetPlayerVehicleID == kocsi1)
CMD:ajto(playerid, params[], vehicleid , ispassenger){new playerState = GetPlayerState(playerid); // Get the killer\'s statenew VehID = GetPlayerVehicleID(playerid);new engine,lights,alarm,doors,bonnet,boot,objective;new melette = GetClosestCar(playerid);if(IsPlayerInAnyVehicle(playerid)){ if(VehID >= 8 | VehID <= 23) { new Float:x, Float:y, Float:z; new VehPos = GetVehiclePos(vehicleid, x, y, z); if(vEngine[VehID] == 0) { if(IsPlayerInRangeOfPoint(VehID, 17.0, VehPos, x, y, z)) GetVehicleParamsEx(VehID,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(VehID,engine,lights,alarm,1,bonnet,boot,objective); SendClientMessage(playerid, 0x5eff00AA, \"Ajtók bezárva!\"); vEngine[VehID] = 1; } else if(vEngine[VehID] == 1) { if(IsPlayerInRangeOfPoint(VehID, 17.0, VehPos, x, y, z)) GetVehicleParamsEx(VehID,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(VehID,engine,lights,alarm,0,bonnet,boot,objective); SendClientMessage(playerid, 0x6fff00AA, \"Ajtók kinyitva!\"); vEngine[VehID] = 0; } } else return SendClientMessage(playerid,COLOR_PURPLE,\"Nincs kulcsod a jármûhöz!\");}else{ if(melette >= 8 | melette <=23) { new Float:x, Float:y, Float:z; new VehPos = GetVehiclePos(melette, x, y, z); if(vEngine[melette] == 0) { GetVehicleParamsEx(melette,doors); SetVehicleParamsEx(melette,1); SendClientMessage(playerid, 0x5eff00AA, \"Ajtók bezárva!\"); } else if(vEngine[melette] == 1) { GetVehicleParamsEx(melette,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(melette,engine,lights,alarm,0,bonnet,boot,objective); SendClientMessage(playerid, 0x6fff00AA, \"Ajtók kinyitva!\"); } }}return 1;}
new VehID = GetClosestCar(playerid);new Float: vX, Float: vY, Float: vZ;GetVehiclePos(VehID, vX, vY, vZ);if(!IsPlayerInRangeOfPoint(playerid, 4.5, vX, vY, vZ)) return SendClientMessage(playerid, PIROS, \"Nincs a közeledben jármû!\"); if((VehID >= 1) && (VehID <= 7))
if(IsPlayerInRangeOfPoint(VehID, 17.0, VehPos, x, y, z))
CMD:bezar(playerid, params[], vehicleid){ new VehID = GetClosestCar(playerid); new Float: vX, Float: vY, Float: vZ; GetVehiclePos(VehID, vX, vY, vZ);if(!IsPlayerInRangeOfPoint(playerid, 4.5, vX, vY, vZ)) return SendClientMessage(playerid, PIROS, \"Nincs a közeledben jármû!\");if((VehID >= && (VehID <= 23)) { new ii; SendClientMessage(playerid, 0xFFFF00AA, \"Kocsi bezárva!\"); for(new i = 0; i < MAX_PLAYERS; i++) SetVehicleParamsForPlayer(VehID,ii,false,true);}else{ SendClientMessage(playerid, -1, \"Nincs kulcsod ehhez a jármûhöz!\");} return 1; } CMD:kinyit(playerid, params[], vehicleid){ new VehID = GetClosestCar(playerid); new Float: vX, Float: vY, Float: vZ; GetVehiclePos(VehID, vX, vY, vZ);if(!IsPlayerInRangeOfPoint(playerid, 4.5, vX, vY, vZ)) return SendClientMessage(playerid, PIROS, \"Nincs a közeledben jármû!\");if((VehID >= && (VehID <= 23)) { new ii; SendClientMessage(playerid, 0xFFFF00AA, \"Kocsi kinyitva!\"); for(new i = 0; i < MAX_PLAYERS; i++) SetVehicleParamsForPlayer(VehID,ii,false,false);}else{ SendClientMessage(playerid, -1, \"Nincs kulcsod ehhez a jármûhöz!\");} return 1; }