-
Posts
2,608 -
Joined
-
Last visited
Everything posted by 12p
-
What would be a correct script for a teleporting system
12p replied to stormchaser206's topic in Scripting
OH CMON!!! IT'S NOT THAT HARD, FOR THE LOVE OF...!!! Okay, okay... Calm down... There is something called "perseverance", dunno if you EVER heard about it. If you can't handle with the pressure of learning a simple scripting language like Lua, you should leave any attempt of developing anything related to computation in your life. Otherwise, pay attention to the post above this one (myonlake's) -
What would be a correct script for a teleporting system
12p replied to stormchaser206's topic in Scripting
Make sure the second marker is not in the same position as first markers teleports to. -
What would be a correct script for a teleporting system
12p replied to stormchaser206's topic in Scripting
createMarker addEventHandler ==> onMarkerHit setElementPosition Also you may want to make 3d texts to tell the player where do the markers teleport to. Use this for that: https://community.multitheftauto.com/index.php?p= ... ls&id=3090 -
Find them at community... It's not that hard to type "afk" in the search bar.
-
NOTE: He means batabase by this countryNames = { ["IT"]="Italy", ["MX"]="Mexico", ["SA"]="SAUDI ARBIA", ["EG"]="EGYPT" } Remember to declare the database before anything else in your code.
-
The image doesn't have the right SHARPNESS. ("clarity" is from "claridad", which is "nitidez", or "sharpness")
-
countryNames = { ["IT"]="Italy", ["MX"]="Mexico", ["SA"]="SAUDI ARBIA", ["EG"]="EGYPT" } addEventHandler('onPlayerJoin',g_Root, function () local country = exports['admin']:getPlayerCountry(source) setElementData(source,'Country',country) outputChatBox('[JOIN] #ffffff' .. getPlayerName(source) .. '#00FF09 Joined The Server From #FF8900[' .. countryNames[tostring(country)] .. '] ', getRootElement(), 2, 255, 2, true) end
-
Eso es obvio y no viene al caso. No hay que ser perfecto para ser formal al subir un resource Ah, y... Cual es el proposito de este tema? No es como que la gente vaya a leer cada tema, y encontrarse con este, antes de subir sus resources...
-
Start editor and keep your server without password (this isn't a good idea, though anyone can modify your maps), or lock it and tell your friends what is the password.
-
Use "admin" source code to figure out how to do it. Tip: getPlayerCountry + get the flags icons.
-
Test them before posting anything else.
-
No es necesario agregarlo a ese archivo. Escribe "/start myserver" en el chat (si el resource se llama "myserver", claro).
-
No te quedo claro en esa pagina de la wiki? Tienes que crear un resource, darle un archivo meta, crear un archivo .lua de scripting, y a ese archivo .lua le haces tu script. Creo que lo tienes muy claro en el tutorial
-
Mmmm... Al testearlo no funciona, verdad? Prueba a escribir "/upgrade" en el chat. Espera un poco, y luego presiona F8, si dice "basic upgrade performed" o algo parecido, por favor postea el codigo que tengas despues de ese "/upgrade", aqui.
-
Ok... No se llama script, se llama RESOURCE https://wiki.multitheftauto.com/wiki/ES/Resources Ahí tienes toda la info PD: ah si, estaba desactualizada, acabo de actualizarla y agregar un tip
-
Script base? No somos adivinos. Especifica a qué te refieres desde el principio Puedes estarte refiriendo a roleplay, race, basemode, deathmatch, un resource cualquiera... Por ello, especifica.
-
Eso es obvio y no viene al caso. No hay que ser perfecto para ser formal al subir un resource
-
Nobody said he doesn't have rights to do it... I'm not stupid, I'm just disappointed of all those race servers. Every one is a rip-off of each other, but some few servers, like X5 or FFS. But if you want to have another copy-pasted race server between the 100+ we got (as I said before ), then it's fine. My best suggestion is to create many maps by yourself and/or your friends, and only use those. Also, get some beta testers to tell you whether your map is cool or not (the author never knows what is good or bad). Good luck. (btw I won't return to this topic)
-
What about retrieving variables from other resources? If you wanna know why, I'll tell ya
-
Fue creado para ambos, por algo tiene también el código HTML
-
--Conseguimos las coordenadas de los hospitales, y la rotacion (para evitar que el jugador mire hacia el hospital al spawnear ) local zones = { ["Los Santos"]={1177.5, -1323.2, 14.07}, --Cambia solo "rotacion"! ["San Fierro"]={-2645.3, 635.2, 14.4}, --Cambia las coordenadas y "rotacion"! ["Las Venturas"]={1600.2, 1827.2, 10.8} --Cambia las coordenadas y "rotacion"! ["Unknown"]={1600.2, 1827.2, 10.8} --Cambia las coordenadas y "rotacion"! Cuando esta en un interior la Zona es "Unknow" ["Red County"]={1600.2, 1827.2, 10.8} --Cambia las coordenadas y "rotacion"! } function aparecerJugador(jug,armas,skin,Team,x,y,z) --local city = getElementZoneName ( jug, true ) --En que ciudad esta el jugador? --if city then --Si el jugador esta en una ciudad de las 3, y no en el campo o algo asi spawnPlayer(jug,x,y,z,0,skin) setPlayerTeam(jug,Team) --outputChatBox ("naciste en: " ..x .." " ..y .." " ..z .." ", jug, 255, 0 ,0) for k,v in ipairs(armas) do -- Repetimos codigo por todas las armas que tenia giveWeapon(jug,v[1],v[2]) -- Damos la arma que tenia con su respectiva munición end end --end addEventHandler("onPlayerWasted",root,function() local weaps = {} -- Inicializamos la tabla de armas for i=1,11 do --Repetimos codigo por los 11 slots de armas local weap = getPedWeapon(source,i) -- Obtenemos la arma en un slot if weap>0 then -- Vemos si es que tiene arma en el slot local ammo = getPedTotalAmmo(source,i) -- Obtenemos la munición de la arma if ammo>0 then -- Vemos si hay munición de la arma table.insert(weaps,{weap,ammo}) -- Agregamos la arma en la tabla end end end local city = getElementZoneName (source, true ) --En que ciudad esta el jugador? if city then --Si el jugador esta en una ciudad de las 3, y no en el campo o algo asi local x,y,z = zones[city][1],zones[city][2],zones[city][3] local Team = getPlayerTeam(source) -- obtenemos el team del jugador local skin = getElementModel(source) -- Obtenemos el skin del jugador setTimer(aparecerJugador,4000,1,source,weaps,skin,Team,x,y,z) -- Esperamos 4 segundos para reaparecer al jugador end end) Escribiste mal "Unknown"
-
LOL, I asked my dad about it. That graphics card already got one of those things.
