Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. Bean666

    Turf System?

    Hello, what functions would I need to make a simple turf system? I know i'll need the createColCuboid but how do i get gang names, players in gang, etc? as they don't have a function for it, as I only know getTeamFromName and getPlayersinTeam How can i get players inside a "gang" elementdata? do I do a loop like this? local players = getElementsWithinColShape( turfarea, "player" ) for i, v in ipairs(players) do local gangname = getElementData(v, "gang") if gangname ~= ?? then -- idk how to get the gangname that's taking the colshape either. this just
  3. Today
  4. saveitens = { [1] = {"Whiskey"}, [2] = {"Agua"}, [3] = {"Chocolate"}, [4] = {"Coca-Cola"}, } function Save_Itens(conta) if conta then local source = getAccountPlayer(conta) if isElement(source) then for i, saveitens in ipairs(saveitens) do local bank = getElementData(source, saveitens[1]) or 0 setAccountData(conta, saveitens[1], tonumber(bank)) end end end end addEventHandler("onPlayerLogin", root, function(_,acc) setTimer(Load_Itens,100,1,acc) end ) function Start_Itens(res
  5. SpecT

    Timer C-side

    Yes, you can change it to root. It won't trigger for everyone as long as you specify to which players to be triggered.
  6. Bean666

    Timer C-side

    oh thanks, and anyway, the "drawxp" event hanlder, i can change the localPlayer, to root right? since it doesnt really matter as long as you trigger the clientevent for a certain variable, and it wont trigger to others, and root is faster right?
  7. SpecT

    Timer C-side

    Oh sorry I got it wrong the idea you have. The "if killer == localPlayer then" will be enough to limit it so your timer won't be killed when somebody else kills the ped. function drawxp(xpfromserver) xptogive = xpfromserver removetimer = setTimer(function() xptogive = false end, 3*1000, 1) end addEvent("drawxp", true) addEventHandler("drawxp", localPlayer, drawxp) function onWasted(killer, weapon, bodypart) if ( killer and getElementType(killer) == "player" and getElementType(source) == "ped" ) then if killer == localPlayer and getElementData(source, "zombie") == true then
  8. Bean666

    Timer C-side

    function drawxp(xpfromserver) xptogive = xpfromserver removetimer = setTimer(function() xptogive = false end, 3*1000, 1) end addEvent("drawxp", true) addEventHandler("drawxp", localPlayer, drawxp) function onWasted(killer, weapon, bodypart) if ( killer and getElementType(killer) == "player" and getElementType(source) == "ped" ) then if killer == localPlayer then if getElementData(source, "zombie") == true then if isTimer(removetimer) then killTimer(removetimer) outputChatBox("killed timer") end end end end end addEventHandler("onClientPedWasted", getLocalPla
  9. SpecT

    Timer C-side

    Hello, All you need to do is to replace the getRootElement() in the addEventHandler with localPlayer . Also instead of getLocalPlayer() use the predefined variable localPlayer . Uhh I just noticed it is used when a zombie is being killed. Isn't this better to be in the server side ?
  10. Bean666

    Timer C-side

    Hi, I noticed my client-side timer was getting killed when another player kills a ped too. so I decided to add a getLocalPlayer() to the killer variable, but will this work?, will this not kill my timer if another player kills a ped, since I added a getLocalPlayer() now? I don't have anyone to test with rn but I just wanna ask, if this doesn't work, do I need to add a timer table like serverside-timers(player-based) instead? I tried adding a local before the removetimer but doing that, the timer can't be recognized by the event onClientPedWasted, but removing the local caused the timer to be k
  11. Hello I was banned for the reason trainer but I did not play but my brother I go in and I have a ban for 10 days please help me delete gta did not help my serial number-8939C3A6A061D6A27491D6EE4DB25D52 Заранее спасибо !
  12. save(setting) -- there is no argument in that function function save(ARGUMENT) --add the argument here: if ARGUMENT then --check if exists; local file = fileOpen('save.json') or fileCreate('save.json') local file = fileWrite(toJSON(ARGUMENT)); --write to file; -- you should maybe save the file also ?? fileClose(file); end end The same for load() function I don't understand what it is that you want to write to the file?
  13. for muscle and other stats you have setPedStat ???
  14. Stevor

    Col

    https://upload.mtasa.com/u/774099756/FT.rar_
  15. te recomiendo quitar a la venta Mi gamemode porque me la has estafado , te recomiendo sacarla y no venderla porque corres el riesgo que te banen si no quitas la gm de venta pues no quedara otra que yo subirla a github , soy el dueño de esta GM por lo cual tengo licencia para hacerlo( asi que los que la intente comprar tengan cuidado con este tipo porque me estafo pagandomela puedo darles pruebas de como me estafo Phoenixuwu#8184 )
  16. Como assim especificar o jogador no primeiro parâmetro? Já tentei sim server-side da seguinte forma: function removerprotecao (source) setElementAlpha(source, 255) end addEventHandler("onPlayerCommand",root, function(command) if (command == "praia") then if not getPedOccupiedVehicle(source) then setElementAlpha(source, 100) toggleControl ( source, "fire", false ) toggleControl ( source, "aim_weapon", false ) toggleControl ( source, "next_weapon", false ) toggleControl ( source, "previous_weapon", false ) toggleControl ( source, "vehicle_fire", fa
  17. setting = 1 local sx, sy = guiGetScreenSize() local dx, dy = 1920, 1080 -- GUI Window local guiWindow = guiCreateWindow(100/sx*dx, 160/sy*dy, 200/sx*dx, 160/sy*dy, 'Shader Resolution', false, false) local low = guiCreateRadioButton(20/sx*dx, 30/sy*dy, 150/sx*dx, 20/sy*dy, 'Low', false, guiWindow) local medium = guiCreateRadioButton(20/sx*dx, 60/sy*dy, 150/sx*dx, 20/sy*dy, 'Medium', false, guiWindow) local high = guiCreateRadioButton(20/sx*dx, 90/sy*dy, 150/sx*dx, 20/sy*dy, 'High', false, guiWindow) guiSetVisible(guiWindow, false) -- END bindKey('F1', 'down', function() guiSetVisible(gui
  18. Não resolveu meu problema. Estava analisando para tentar achar o problema e vi uma coisa no prompt de comando que talvez seja o problema, não sei, vou mostrar para vocês que entendem do assunto. Desde já agradeço a quem já tentou e a quem talvez venha a conseguir me ajudar com o problema.
  19. Yesterday
  20. really, i'm not a modeler, but people who know the same knowledge as mine, managed to save even heavier models, and i know that the size of this skin goes far beyond what is normally a gta san andreas skin, and how I spoke before and I repeat now: this model was made for a clothing system for the MTA, so far, as far as I know, the only way to make a clothing system using 3D models and not just textures for the MTA, is to put everything together , and most models in these outfits are not made by modelers, most are converted gta 5 dolls, and it may be that I’m really doing something wrong (even
  21. I didn't read your entire log yet, but something specific in there indicates a type of corruption (WMI) that you can often resolve with this method: - Download https://mirror.mtasa.com/mtasa/utils/servicing.bat (naming is just a coincidence.. we send it to many users for support) - Right-click the .bat file and select "Run as Administrator" Wait until the process is completed, might take long but it will close on its own. Then reboot your PC and see if MTA works Also for good measure, please update some of your drivers.. to the following versions: GPU: https://d
  22. Tut

    Col

    Please post the link here.
  23. Acho que vc n entendeu muito bem, o timer se ativa quando um jogador da /dominar, não quando é dominado, assim se o jogador der /dominar e sair do marker, vai ativar 2 vezes o mesmo timer, se eu colocar um killTimer ao sair do marker, vai parar o timer da equipe que ainda esta em posse da favela. e mesmo se o jogador dominar, o timer anterior não vai desativar e vai ficar com mais de um timer dando dinheiro do mesmo jeito. (demora 60 segundos para dominar)
  24. O Mod funciona assim, quando o jogador entra no servidor tem que usar /baixar para baixar e ativar as mods (skins, veiculos e texturas), ao baixa-los, pode escolher qual ativar e qual não ativar com o comando /mods. O WARNING ocorre quando um jogador usa o /baixar, ao usar esse comando, aparece um painel com as opções de baixar ou cancelar, ao apertar em baixar, para cada mod colocado nesse script acontece o WARNING: Bad usage @ 'FileOpen' [Unable to load file 'LocalDoArquivo']. Mas mesmo dando esse WARNING para cada mod que foi ativo, o script funciona normalmente, todos os mods são baixados
  25. Você precisa definir o e-mail do proprietário do servidor no mtaserver.conf.
  26. Vc precisa especificar o timer que será cancelado no killTimer. E sim, vc deve parar o que estava dando money para a equipe anterior. Pois não faz sentido a equipe anterior continuar recebendo dinheiro se ela não domina mais aquela zona.
  27. ao usar killTimer quando dominar, não pararia os 2 timers? o antigo que estava dando money para a equipe anterior e o novo? e tambem o problema continuaria do mesmo jeito, pois cada vez que alguem da /dominar e sai do marker, cria um novo timer
  28. Já tentou fazer server-side e especificar o jogador no primeiro parâmetro?
  1. Load more activity
×
×
  • Create New...