Jump to content

Version

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Version's Achievements

Member

Member (5/54)

0

Reputation

  1. Ninguna respuesta he recibido xd bueno gracias de todas formas
  2. addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) setPlayerSkin(source, 170) end end ) function spawn(player) --if not isElement(player) then return end if get("spawnreset") == "onSpawn" then setPlayerSkin(source, 170) spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(322)) setPlayerSkin(source, 170) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, --Cuando el jugador ingresa al servidor. function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo spawnPlayer (source, 170, 170, 170) setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170) else spawn(source) end end) addEventHandler("onPlayerLogin", root, --cuando el jugador inicia sesión en su cuenta function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo setPlayerMoney(source, 800) setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170)--Si funciona pero No se porque al momento de morir se vuelve la skin de cj end end) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, -- oyuncu öldüğünde function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170) else end end) addEventHandler ( "onPlayerWasted", getRootElement(), SWSpawn ) addEventHandler("onPlayerLogin", root, spawnOnLogin)
  3. How can I make it so that at the moment of appearing the CJ skin does not appear, if someone helps me I will be grateful addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) setPlayerSkin(source, 170) end end ) function spawn(player) --if not isElement(player) then return end if get("spawnreset") == "onSpawn" then setPlayerSkin(source, 170) spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,math.random(322)) setPlayerSkin(source, 170) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, --Cuando el jugador ingresa al servidor. function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo spawnPlayer (source, 170, 170, 170) setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170) else spawn(source) end end) addEventHandler("onPlayerLogin", root, --cuando el jugador inicia sesión en su cuenta function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo setPlayerMoney(source, 800) setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170)--Si funciona pero No se porque al momento de morir se vuelve la skin de cj end end) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) addEventHandler("onPlayerWasted", root, -- oyuncu öldüğünde function() if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SW")) then --si el jugador está en el grupo setTimer(spawnPlayer, 2000, 1, source, 229.37994, -1222.52002, 75.39643) --generar jugador aquí setPlayerSkin(source, 170) else end end) addEventHandler ( "onPlayerWasted", getRootElement(), SWSpawn ) addEventHandler("onPlayerLogin", root, spawnOnLogin)
  4. Well, hello, I'm a version. This script deals with how much you unite with the panel so that a player sends him to a base and he stays there when he dies, he continues to stay in his respective Mafia base. Well, the thing is that when I add myself or add to a person to the acl mafia group when that player dies or I myself do not appear in that place where I order him to appear local spawnpoints = { -- pon el grupo aquí y el coords de spawn -- todos el grupos tiene uno o mas spawns -- por ejemplo: -- ["nombre de grupo"] = { { x, y, z, rot }, ... } -- x, y, z = coords -- rot = cual direcion a cara en grados -- NOTA: debes poner el nombre de grupo corecto o no funciona ["Mafia"] = { { 2411.09521, -1766.53259, 13.3, 0 } }, ["Policia"] = { { 0, 0, 4, 0 } }, -- debes no poner ningún grupos bajo grupo "Everyone" ["Everyone"] = { {2481, -1675, 13.4, 0}, {-1972, 879.8, 45.2, 0}, {-703.1, 955.7, 12.3, 0}, {2019, 1543, 10.8, 0}, {-2347, -1593, 496.0, 0} } } function getRandomSpawnPoint(player) local account = getPlayerAccount(player) -- ese jugador tiene cuenta -- buscar la primera grupo el jugador tiene if not isGuestAccount(account) then local accountName = getAccountName(account) for groupName, spawns in pairs(spawnpoints) do -- saltar si grupo no existe local group = aclGetGroup(groupName) if group and isObjectInACLGroup("user."..accountName, group) then local spawns = spawnpoints[groupName] return spawns[math.random(1,#spawns)] end end end -- recurrir a grupo "Everyone" local spawns = spawnpoints["Everyone"] return spawns[math.random(1,#spawns)] end function spawn(player) if not isElement(player) then return end local x, y, z, rot = unpack(getRandomSpawnPoint(player)) spawnPlayer(player, x, y, z, rot, math.random(312)) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) addEventHandler("onResourceStart", resourceRoot, function() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end )
  5. thanks but I edited it almost the same everyone moderator supermoderator mod and my question is if I could do something similar because it works but the problem is that I get a bug when modifying something I mean if you can create one from scratch that is different from mine and that doesn't bugie when you change something.
  6. well here is the script I found and modified it because it was not so well they already have an idea but I want it to be another that someone designs it in another way to see if that bug stops appearing well here is the script I found and modified it because it was not so well they already have an idea but I want it to be another that someone designs it in another way to see if I stop appearing that bug Pos: 0 0 0 You are at {0.00000, 0.00000, 0.00000} takim1 = "Everyone" -- ACL Group Adını buraya giriniz takim2 = "Moderator" -- ACL Group Adını buraya giriniz takim3 = "SuperModerator" -- ACL Group Adını buraya giriniz takim4 = "Admin" -- ACL Group Adını buraya giriniz takim1skin = 285 -- Buraya Takim1 aclsinin doğduğunda verilicek olan skinin id sini yazınız. takim2skin = 287 -- Buraya Takim2 aclsinin doğduğunda verilicek olan skinin id sini yazınız. takim3skin = 286 -- Buraya Takim3 aclsinin doğduğunda verilicek olan skinin id sini yazınız. takim4skin = 283 -- Buraya Takim4 aclsinin doğduğunda verilicek olan skinin id sini yazınız. function oyuncuspawn(oyuncu) if not isElement( oyuncu ) then return end showChat( oyuncu, true ) local hesap = getPlayerAccount( oyuncu ) if hesap and not isGuestAccount( hesap ) then if isObjectInACLGroup ( "user.".. getAccountName( hesap ), aclGetGroup ( takim1 ) ) then spawnPlayer ( oyuncu, -2477.9606933594, 494.64392089844, 30.07054901123, 90, takim1skin ) elseif isObjectInACLGroup ( "user.".. getAccountName( hesap ), aclGetGroup ( takim2 ) ) then spawnPlayer ( oyuncu, 588.4067402835, 875.51007080078, -42.497318267822 , 90, takim2skin) elseif isObjectInACLGroup ( "user.".. getAccountName( hesap ), aclGetGroup ( takim3 ) ) then spawnPlayer ( oyuncu, -1424.4116210938, 501.22912597556, 18.229438781738, 90, takim3skin) elseif isObjectInACLGroup ( "user.".. getAccountName( hesap ), aclGetGroup ( takim4 ) ) then spawnPlayer ( oyuncu, 2290.4890136719, 581.04016113281, 7.78125, 90, takim4skin) end end fadeCamera( oyuncu, true ) setCameraTarget( oyuncu, oyuncu ) end addEventHandler( "onPlayerJoin", root, function( ) oyuncuspawn( source ) end) addEventHandler( "onPlayerWasted", root, function( ) setTimer( oyuncuoyuncuspawn, 2500, 1, source ) end)
  7. Hello, this message is to know how I could do to create a group of ACL scripts for gang members, for example "Mafia" I have designed, I found a script and I edited it more or less for myself, but when someone connects, it does not appear in Everyone the players for I want to see if you can create something similar and different and that is better thanks for reading I hope you help me because I have spent 2 days without sleep trying to investigate but the information I have found has not helped me at all because it has a bug I don't know yet where this message is directed I'm new to this I hope everything is fine Here I show you the bug of the script that I have modified, so I want someone to be able to create a new one for me because the one that I modified at the beginning worked fine and then when a player joins it appears in this way of course I did nothing wrong pos: 0 0 0 script modified Everyone but when you register automatically login sends you to spawn
  8. es primera vez que creo la cuenta en tonces deberia publicarla en inglesh esta bien lo tomare en cuenta gracias It is the first time that I create the account in tonces should publish it in englishh is well I will take it into account thanks
  9. bro puedes responder tengo un proyecto muy grande para vos si me ayudas te dejo mi discord Gotaniit#1439
  10. hola alguien me podria programar algo para que el jugador al unirse ACL Group"Mafia" el jugador al morir aparezca en la base cordenadas y al unirse al servidor o salir aparezca en la base clan en el que estea y al morir igual alguien podria crearlo es que me gusta mucho las mafias y los clanes de mta el mio quiero que sea cuanto te unes a un clan el jugador al morir aparezca en su propia base Si alguien ve esto estare agradecido Gracias por leer este mensaje
×
×
  • Create New...