Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Busca la funcion llamada "giveMeVehicles" y remplaza toda con esto: function giveMeVehicles(vehicles) if type(vehicles) == 'number' then vehicles = { vehicles } end local px, py, pz, prot local radius = 3 local playerVehicle = getPedOccupiedVehicle(source) if playerVehicle then px, py, pz = getElementPosition(playerVehicle) prot, prot, prot = getVehicleRotation(playerVehicle) else px, py, pz = getElementPosition(source) prot = getPedRotation(source) end local offsetRot = math.rad(prot) local vx = px + radius * math.cos(offsetRot) local vy = py + radius * math.sin(offsetRot) local vz = pz + 2 local vrot = prot local vehicleList = g_PlayerData[source].vehicles local vehicle for i,vehID in ipairs(vehicles) do if vehID < 400 or vehID > 611 then errMsg(vehID ..' is incorrect vehicle model', source) elseif not table.find(getOption('vehicles.disallowed'), vehID) then if #vehicleList >= getOption('vehicles.maxperplayer') then unloadVehicle(vehicleList[1]) end vehicle = createVehicle(vehID, vx, vy, vz, 0, 0, vrot) if not isPedInVehicle(source) then warpPedIntoVehicle(source, vehicle) end table.insert(vehicleList, vehicle) g_VehicleData[vehicle] = { creator = source, timers = {} } if vehID == 464 then warpPedIntoVehicle(source, vehicle) elseif not g_Trailers[vehID] then if getOption('vehicles.idleexplode') then g_VehicleData[vehicle].timers.fire = setTimer(commitArsonOnVehicle, getOption('vehicles.maxidletime'), 1, vehicle) end g_VehicleData[vehicle].timers.destroy = setTimer(unloadVehicle, getOption('vehicles.maxidletime') + (getOption('vehicles.idleexplode') and 10000 or 0), 1, vehicle) end vx = vx + 4 vz = vz + 4 else errMsg(getVehicleNameFromModel(vehID):gsub('y$', 'ie') .. 's are not allowed', source) end end end Espero que tengas por lo menos algo de experiencia con esto.
  2. Para eso tienes que editar el freeroam (tienes que tener experiencia en LUA para esto).
  3. Well, firstly, I don't think you bought it, but you downloaded it from the MTA community ( it was there some time, then got deleted ). And second, I think your problem is with the MySQL? have you installed the MySQL server and configured it? P.S: I know that a version of this old vG has a bug with MOTD, which makes a black screen.
  4. Que yo sepa el resource es este: https://community.multitheftauto.com/index.php?p= ... ls&id=1237
  5. Castillo

    Problems

    Wait, copy the code again, I fixed some bugs.
  6. Castillo

    Problems

    addCommandHandler("rav", function() outputChatBox("RESPAWNING ALL UNOCCUPIED VEHICLES IN 30Secs") setTimer(function () local vehicles = getElementsByType ( "vehicle" ) -- Return all the vehicles in a table for k, vehicle in ipairs ( vehicles ) do -- For every vehicle do the following... if isEmpty( vehicle ) then local seats = getVehicleMaxPassengers(vehicle) resetVehicleIdleTime ( vehicle ) -- Reset the vehicle's idle time respawnVehicle ( vehicle ) end end end, 30000, 1) end) function isEmpty( vehicle ) local passengers = getVehicleMaxPassengers( vehicle ) if type( passengers ) == 'number' then for seat = 0, passengers do if getVehicleOccupant( vehicle, seat ) then return false end end end return true end
  7. Beatty, I don't know if that picture is allowed, also it says "412", and we're in 402 if i'm right.
  8. Sorry, but I don't understand... If you are going to make it server-side, then I suggest you to make a table. local timersTable = {} local playerMarkers = {} function omgstart ( source, commandName ) if ( playerMarkers[source] ) then -- check if the marker was created successfully outputChatBox ("Maker is Already Online!", source, 252, 255, 10 ) else playerMarkers[source] = createMarker ( -2257, 2330, 5, "cylinder", 1.5, 255, 255, 0, 170, source ) outputChatBox ("Create Maker", source, 252, 255, 10 ) timersTable[source] = setTimer(destroyElement, 10000, 1, playerMarkers[source]) end end addCommandHandler ( "startomg", omgstart )
  9. If you want just the person to see it, I would recommend creating the marker client sided.
  10. -- client side addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), function ( attacker, weapon, bodypart ) if ( weapon == 41 ) then -- if the weapon used was the Spraycan cancelEvent() -- we cancel the damage to the player. end end)
  11. Eso es lo que yo dije, no? Proba con esto: function onChat(player,_,...) local msg = table.concat({...}, " ") local nick = getPlayerName(player) local r,g,b = getPlayerNametagColor(player) local vehicle = getPedOccupiedVehicle(player) local occupants = getVehicleOccupants(vehicle) local seats = getVehicleMaxPassengers(vehicle) if isPedInVehicle (player) then for seat = 0, seats do local occupant = occupants[seat] if occupant and getElementType(occupant)=="player" then outputChatBox("#FF00FF(VV)"..tostring(nick)..": #FF0000"..tostring(msg).." *", occupant, r, g, b, true) end end else outputChatBox("Nesesitas estar en un Vehiculo para usar el Vehicle Chat", player, 255, 0, 0) end end addCommandHandler("vv",onChat)
  12. Aver si te entiendo, este script tiene que enviar los menajes que el jugador X a todos los ocupantes del vehiculo que el jugador X este?
  13. No, but you can use triggerServerEvent, triggerClientEvent.
  14. I actually see no point on DDosing a server, is useless.... if the owner is not stupid, he'll keep putting it up again. Or like now, someone impostering me, insulting my friends and so on, I have no idea what I'd to whoever the imposter is.
  15. You'll need player account(s) and password(s) if you want to autologin him.
  16. Talvez sea que el servidor tenga problemas en este momento, intenta mas tarde, talvez otro dia.
  17. That's not possible, /debugscript works when in vehicle or when on foot.
  18. function warpPlayerIntoAndro(hitElement, dimensionMatch) outputDebugString("Warp function triggered") if isPedInVehicle(hitElement) then return end setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 ) end Try that.
  19. Me parece que lo que viste era anim UV.
×
×
  • Create New...