-
Posts
980 -
Joined
-
Last visited
-
Days Won
1
Everything posted by manawydan
-
nice job
-
client GUIEditor = { memo = {} } addEventHandler ( "onClientResourceStart",resourceRoot,function() ventanaArmas = guiCreateWindow(232, 74, 565, 250, "Tienda de Armas \"McCall\"", false) guiWindowSetSizable(ventanaArmas, false) guiSetVisible(ventanaArmas,false) botonGlock = guiCreateButton(28, 45, 146, 47, "Glock 9mm - $150", false, ventanaArmas) botonDeagle = guiCreateButton(28, 161, 146, 47, "Desert Eagle .44 - $300", false, ventanaArmas) GUIEditor.memo[1] = guiCreateMemo(331, 43, 224, 128, "Bienvenido a la Tienda de Armas \"McCall\".\n\nPor ahora solo contamos con 2 armas Glock 9mm y Desert Eagle .44\n\nLas dos armas vienen con 2 cargadores incluidos.\n", false, ventanaArmas) guiMemoSetReadOnly(GUIEditor.memo[1], true) cerrar = guiCreateButton(420, 189, 135, 51, "Cerrar", false, ventanaArmas) addEventHandler ( "onClientGUIClick",guiRoot, comprar) end ) function comprar (button,state) if (button == "left") then if(source == botonGlock) then triggerServerEvent("onClientBuyArmas", localPlayer, "glock") elseif(source == botonDeagle) then triggerServerEvent("onClientBuyArmas", localPlayer, "desert") elseif(source == cerrar) then triggerServerEvent("onClientBuyArmas", localPlayer, "cerrar") end end end addEvent("GuiCerrar",true) addEventHandler("GuiCerrar",root, function() guiSetVisible(ventanaArmas,not guiGetVisible(ventanaArmas)) showCursor(not isCursorShowing()) end) server function comprarServer(Armas) local dinero = getPlayerMoney(source) local Gloc= 150 local Desert= 300 if(Armas == "glock") then if(dinero >= Gloc)then takePlayerMoney(source,Gloc) giveWeapon(source, 22, 34) end elseif (Armas == "desert") then if (dinero >= Desert) then takePlayerMoney(source,Desert) giveWeapon(source, 24, 14) end elseif(Armas == "cerrar") then triggerClientEvent(source,'GuiCerrar',source) end end addEvent( "onClientBuyArmas", true ) addEventHandler( "onClientBuyArmas",getRootElement(), comprarServer ) local tienda =createMarker ( -2540.3955078125, 2288.0318824219, 4.984375, "cylinder", 1.5, 0, 0, 255, 255 ) addEventHandler("onMarkerHit",tienda, function(E) if(E) and getElementType(E) == "player" then triggerClientEvent(E,"GuiCerrar",E) end end) Has enviado un texto al servidor y tratado de tomar un texto diferente enviado. por lo que no funcionó
-
if getPlayerTeam(player) == "nome dotime" then se a tal gang for uma data use getElementData, mas acredito que seja time
-
i cannot download
-
MTA:SA SILENT HILL MTA ZOMBIES/BOSS/ALIEN
manawydan replied to Crow's topic in Servidores en donde jugar
bueno ver nuevas ideas -
Problema com login
manawydan replied to _Vodka_'s topic in Ajudas relacionadas ao MTA:SA (Cliente/Servidor)
qual é seu sistema de spawn? se não tiver, apenas use spawnPlayer no evento onPlayerLogin -
acredito que esse não seja o código inteiro. tente trocar addEventHandler ( "onVehicleExit", stopEngine, function ( player ) setVehicleEngineState ( source, getElementData ( source, "Motor on/off" ) ) end ) para addEventHandler ( "onVehicleExit",root, function ( player ) setVehicleEngineState ( source, getElementData ( source, "Motor on/off" ) ) end )
-
o source do evento "onVehicleExit" é o veiculo
-
intenta, no probado local Skins = {50,60,70,80} -- exemplo function SkinF(p) setElementModel(p,Skins[math.random(1,#Skins)]) end addCommandHandler("skin",SkinF)
-
nice
-
acredito que seja shader (importar uma imagem para substitui um txd) ou um próprio txd.
-
nice, good luck, you can use ac-130 resource : https://community.multitheftauto.com/in ... ls&id=3919
-
error debug? server side work?
-
http://www.gtainside.com/en/news.php
-
nice maps!
-
boa sorte, se precisa de alguma ajudinha poste aki neste tópico
-
script não se aprende do dia pra noite, aos poucos você vai melhorando e criando coisas melhores, porém se gasta um tempo com isso.Boa sorte, tente faze mods menores e depois consiguira faze mods maiores.
-
Concordo com o StanleySathler, tenho um server de zombie (não uso dayz), mas tento vender vip para poder tentar ajudar no host.
