-
Posts
438 -
Joined
-
Last visited
Everything posted by FraN-724
-
No tested antyRelogWindow = guiCreateWindow(0.35, 0.03, 0.30, 0.10, "Powiadomienie", true) guiWindowSetMovable(antyRelogWindow, false) guiWindowSetSizable(antyRelogWindow, false) text1AR = guiCreateLabel(0.08, 0.29, 0.87, 0.17, "UWAGA! Doznałeś obrażeń, przez co nie możesz opuścić serwera, dopóki to", true, antyRelogWindow) text2AR = guiCreateLabel(0.07, 0.57, 0.93, 0.20, "okienko nie zniknie! W przeciwnym razie, twoja postać zostanie uśmiercona", true, antyRelogWindow) guiSetVisible (antyRelogWindow,false) function wlaczOkienko() guiSetVisible (antyRelogWindow,true) setTimer (antyRelogWindow, 10000, 1) end addEvent("wlaczInfo",true) addEventHandler ("wlaczInfo", getRootElement(), wlaczOkienko) function wylaczOkienko() guiSetVisible (antyRelogWindow,false) end addEvent("wylaczInfo",true) addEventHandler ("wylaczInfo", getRootElement(), wylaczOkienko)
-
You want if the panel disappears in 10 seconds right?
-
De nada.
-
Good job congratulations
-
Great job and nice Map
-
Tienes que seleccionar un Pickups y darle F3, cambiar Health por la arma que deceas
-
Thank you and great job
-
Great job man congratulations
-
Esa Línea es Client side.
-
Quizás te pueda servir esta función getPlayerSerial
-
Puedes utilizar createVehicle isObjectInACLGroup Si los clanes los tienes hechos por la ACL o puedes usar la función que te dio Alexs que es por Team Y si lo quieres por el gang system debes utilizar esta línea. if getElementData(localPlayer,"gang") == "CLAN" then
-
Es fácil man, quizás estás funciones te sirvan. getElementData setElementData triggerClientEvent onClientPlayerDamage
-
Utiliza isObjectInACLGroup
-
AlvareZ, creo que a tu función le falta un end.
-
es fácil solo pones. setElementDimension ( source, 20 ) -- 20 es la dimension la cual quieres el pickups setElementInterior ( source, interior, 2233.91, 1714.73, 1011.38 ) -- y aqui es lo mismo que arriba pero solo que con posiciones X Y Z
-
Valla creo que me confundí de rank, ya que en ese igual sale.
-
Prueba así ahora, ya que no lo estoy probando, si no que lo hago a la rápida. Client function tienda() Window = guiCreateWindow(243,181,555,488,"Tienda de Armas/Weapon Shop",false) imagen4 = guiCreateStaticImage(0.0595,0.0902,0.2414,0.2172,"images/SNIPER.png",true,Window) imagen3 = guiCreateStaticImage(0.618,0.1004,0.2577,0.207,"images/M4.png",true,Window) imagen2 = guiCreateStaticImage(0.6505,0.5861,0.2306,0.2582,"images/MP5.png",true,Window) imagen1 = guiCreateStaticImage(0.0865,0.5922,0.2126,0.2275,"images/GRENADE.png",true,Window) Sniper = guiCreateButton(0.0631,0.3217,0.2324,0.1352,"Sniper/Costo:155000$",true,Window) M4 = guiCreateButton(0.6144,0.3217,0.2523,0.127,"M4/Costo:120000$",true,Window) Grenade = guiCreateButton(0.0649,0.8525,0.2559,0.1291,"Grenade/Costo:20000$x1",true,Window) MP5 = guiCreateButton(0.6432,0.8504,0.2685,0.1311,"MP5/Costo:25000$",true,Window) Cerrar = guiCreateButton(0.355,0.5082,0.2162,0.168,"Cerrar/Close",true,Window) addEventHandler ( "onClientGUIClick", Cerrar, Salir, false ) addEventHandler ( "onClientGUIClick", M4, arma1, false ) addEventHandler ( "onClientGUIClick", Sniper, arma2, false ) addEventHandler ( "onClientGUIClick", Grenade, arma3, false ) addEventHandler ( "onClientGUIClick", MP5, arma4, false ) guiSetVisible (Window,false) end function arma1() triggerServerEvent ( "arm1", getLocalPlayer() ) end function arma2() triggerServerEvent ( "arm2", getLocalPlayer() ) end function arma3() triggerServerEvent ( "arm3", getLocalPlayer() ) end function arma4() triggerServerEvent ( "arm4", getLocalPlayer() ) end function marker() triggerServerEvent ( "mark", getLocalPlayer() ) end function showGUI () guiSetVisible (Window,true) showCursor (true) end addEvent ("showGUI",true) addEventHandler ("showGUI",getRootElement(),showGUI)
-
Prueba así. Server Side: local Marker = createMarker ( 1294.6767578125, -1337.5, 17.860641479492, "cylinder", 1.5, 255, 0, 0, 255 ) function GUI(hitPlayer) triggerClientEvent(hitPlayer,"showGUI",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",Marker,GUI) function arm11 (thePlayer) local money = getPlayerMoney ( thePlayer ) if money >= 120000 then takePlayerMoney ( thePlayer, 120000 ) giveWeapon ( source, 31, 2880 ) end end addEvent( "arm1", true ) addEventHandler( "arm1", getRootElement(), arm11 ) function arm22 (thePlayer) local money = getPlayerMoney ( thePlayer ) if money >= 155000 then takePlayerMoney ( thePlayer, 155000 ) giveWeapon ( source, 34, 100 ) end end addEvent( "arm2", true ) addEventHandler( "arm2", getRootElement(), arm22 ) function arm33 (thePlayer) local money = getPlayerMoney ( thePlayer ) if money >= 20000 then takePlayerMoney ( thePlayer, 20000 ) giveWeapon ( source, 16, 1 ) end end addEvent( "arm3", true ) addEventHandler( "arm3", getRootElement(), arm33 ) function arm44 (thePlayer) local money = getPlayerMoney ( thePlayer ) if money >= 25000 then takePlayerMoney ( thePlayer, 25000 ) giveWeapon ( source, 29, 99 ) end end addEvent( "arm4", true ) addEventHandler( "arm4", getRootElement(), arm44 ) Client Side: function tienda() Window = guiCreateWindow(243,181,555,488,"Tienda de Armas/Weapon Shop",false) imagen4 = guiCreateStaticImage(0.0595,0.0902,0.2414,0.2172,"images/SNIPER.png",true,Window) imagen3 = guiCreateStaticImage(0.618,0.1004,0.2577,0.207,"images/M4.png",true,Window) imagen2 = guiCreateStaticImage(0.6505,0.5861,0.2306,0.2582,"images/MP5.png",true,Window) imagen1 = guiCreateStaticImage(0.0865,0.5922,0.2126,0.2275,"images/GRENADE.png",true,Window) Sniper = guiCreateButton(0.0631,0.3217,0.2324,0.1352,"Sniper/Costo:155000$",true,Window) M4 = guiCreateButton(0.6144,0.3217,0.2523,0.127,"M4/Costo:120000$",true,Window) Grenade = guiCreateButton(0.0649,0.8525,0.2559,0.1291,"Grenade/Costo:20000$x1",true,Window) MP5 = guiCreateButton(0.6432,0.8504,0.2685,0.1311,"MP5/Costo:25000$",true,Window) Cerrar = guiCreateButton(0.355,0.5082,0.2162,0.168,"Cerrar/Close",true,Window) showCursor ( true ) addEventHandler ( "onClientGUIClick", Cerrar, Salir, false ) addEventHandler ( "onClientGUIClick", M4, arma1, false ) addEventHandler ( "onClientGUIClick", Sniper, arma2, false ) addEventHandler ( "onClientGUIClick", Grenade, arma3, false ) addEventHandler ( "onClientGUIClick", MP5, arma4, false ) end function Salir() guiSetVisible (Window, not guiGetVisible ( Window ) ) showCursor ( false ) end function arma1() triggerServerEvent ( "arm1", getLocalPlayer() ) end function arma2() triggerServerEvent ( "arm2", getLocalPlayer() ) end function arma3() triggerServerEvent ( "arm3", getLocalPlayer() ) end function arma4() triggerServerEvent ( "arm4", getLocalPlayer() ) end function marker() triggerServerEvent ( "mark", getLocalPlayer() ) end function showGUI () guiSetVisible (Window,true) showCursor (true) end addEvent ("showGUI",true) addEventHandler ("showGUI",getRootElement(),showGUI)
-
Postea tu script como lo tienes ahora.
-
Yo solo lo puse así para que él vea los errores que tiene, ya que de los errores se aprende; y no siempre vamos a estar para ayudarlo, ya que él también tiene que poner de su parte y que aprenda solo.