Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. What is this? do you know that this is a English-only speaking forum? if you want to speak in your own language, search in "Languages" section for your language.
  2. Hello Turismo, as far as I remember, this resource should work as a gang system (that was the point of the resource).
  3. Castillo

    Map Ratings

    https://community.multitheftauto.com/index.php?p= ... ils&id=468 https://community.multitheftauto.com/index.php?p= ... ils&id=467
  4. https://community.multitheftauto.com/index.php?p= ... ils&id=202
  5. Indeed, what I gave him was a code to get a random location from a table.
  6. Very simple, make a table with the locations, then randomize from it. local myLocationsTable = {} {x, y, z}, {x, y, z}, {x, y, z}, {x, y, z} function getRandomLocation() local rand = math.random(#myLocationsTable) local x, y, z = myLocationsTable[rand][1], myLocationsTable[rand][2], myLocationsTable[rand][3] return x, y, z end
  7. Sorry but that's not related to this resource(dxscoreboard), make a new topic in the Scripting section with your script code.
  8. function arrest(theCop, commandName, target, time) -- el segundo argumento es el nombre del comando. local skinID = getElementModel ( theCop ) local targetplayer = getPlayerFromName(target) local wantedlevel = getPlayerWantedLevel(targetplayer) local tim = tonumber(time) * 1000 -- tu argumento es time no tim. if getElementModel(theCop) == 284 then if wantedlevel >= 1 then if (isElementWithinColShape(theCop, Arrestcolshape1) == true) and (isElementWithinColShape(targetplayer, Arrestcolshape1) == true) then setAccountData(getPlayerAccount(targetplayer), "jailtime", time) portjail(targetplayer) setPlayerWantedLevel(targetplayer,0) --exports.sql:query_assoc("INSERT"..jailtime.."INTO") setAccountData(targetplayer, "wantedlevel",0) outputChatBox("Detenido "..tonumber(tim).. "minutos.", targetplayer,255,0,0) outputChatBox("¡Arrestado "..tonumber(tim).." minutos!", theCop,0,255,0) else outputChatBox("Error.", theCop,255,0,0) end else outputChatBox("¡Este jugador no estaba siendo buscado!", theCop) end else outputChatBox("No eres ni policía ni agente federal.", theCop,255,0,0) end end addCommandHandler("arrest", arrest) Prueba con eso.
  9. Go to race resource then open race_server.lua and search for the word 'scoreboard' and you'll find the checkpoint column.
  10. Maybe try this one: https://community.multitheftauto.com/index.php?p= ... ls&id=1960
  11. I would use Notepad++, it's the one I use, it's perfect, syntax highlighting and so on, you can download it here. Link: http://notepad-plus-plus.org/download
  12. Castillo

    Problems

    No, you can call the function with many ways, command handlers, event handlers, from another function, etc, etc.
  13. Maybe this is what you looking for: http://lua-users.org/wiki/PatternsTutorial
  14. Maybe you should use this instead: https://wiki.multitheftauto.com/wiki/OnVehicleStartEnter, not sure though.
  15. Maybe this is what you looking for. https://community.multitheftauto.com/index.php?p= ... ils&id=727
  16. So, the client can't destroy a server-side marker, i'am right?
  17. Can the client destroy a server-side marker?
  18. Try this: local Blip = createBlip(X,Y,Z,31,0, 0, 0, 255,source) local Marker = createMarker(X,Y,Z,"checkpoint",1.0,0,255,0,170,source) setElementData(getLocalPlayer(),"Marker",Marker) setElementData(getLocalPlayer(),"Blip",Blip)
  19. If you didn't noticed, Arran is CIT owner, so pwned! he can surely ban you. P.S: Yes, you are insulting everyone, you started to insult the servers and now you're pissing off Djlobo.
  20. Maybe it's time to learn? https://wiki.multitheftauto.com/wiki/Scr ... troduction
×
×
  • Create New...