Jump to content

Sensacion

Members
  • Posts

    186
  • Joined

  • Last visited

Everything posted by Sensacion

  1. No te entendí bien, pero no es necesario usar 2 veces el mismo resource para un solo propósito que es el de crear zombies.
  2. I've been waiting this event OnClientVehicleDamage, ,now I wait, the function of adding objects
  3. Yo actualizo directamente en un gui y con un click se guarda en la db sin estar reiniciando el resource, lo que tu dices se puede hacer usando callRemote.
  4. ponle function ENTERLS ( thePlayer ) y function EXITLS ( thePlayer )
  5. tu primera función se llama "teleport" y la segunda también.
  6. addEventHandler("onClientResourceStart", resourceRoot, function () Window = guiCreateWindow(38, 58, 725, 482, "Weapon Shop", false) guiWindowSetSizable(Window, false) guiSetVisible(Window, false) btnm4 = guiCreateButton(10, 100, 98, 44, "7500$ x 200", false, Window) guiSetFont(btnm4, "default-bold-small") btnknife = guiCreateButton(617, 379, 98, 44, "100$ x 1", false, Window) guiSetFont(btnknife, "default-bold-small") btnparachute = guiCreateButton(490, 379, 98, 44, "Price: 900$", false, Window) guiSetFont(btnparachute, "default-bold-small") btnsatchel = guiCreateButton(369, 379, 98, 44, "1500$ x 4", false, Window) guiSetFont(btnsatchel, "default-bold-small") btntec = guiCreateButton(613, 245, 98, 44, "5500$ x 200", false, Window) guiSetFont(btntec, "default-bold-small") btnsniper = guiCreateButton(490, 241, 98, 44, "9000$ x 200", false, Window) guiSetFont(btnsniper, "default-bold-small") btnshotgun = guiCreateButton(369, 245, 98, 44, "1400$ x 150", false, Window) guiSetFont(btnshotgun, "default-bold-small") btnsilenced = guiCreateButton(249, 245, 98, 44, "600$ x 80", false, Window) guiSetFont(btnsilenced, "default-bold-small") btndeagle = guiCreateButton(128, 245, 98, 44, "1000$ x 100", false, Window) guiSetFont(btndeagle, "default-bold-small") btnrifle = guiCreateButton(613, 100, 98, 44, "1000$ x 50", false, Window) guiSetFont(btnrifle, "default-bold-small") btndoubleshout = guiCreateButton(490, 100, 98, 44, "4200$ x 150", false, Window) guiSetFont(btndoubleshout, "default-bold-small") btnspaz = guiCreateButton(369, 100, 98, 44, "2900$ x 100", false, Window) guiSetFont(btnspaz, "default-bold-small") btnmp5 = guiCreateButton(249, 100, 98, 44, "3600$ 150", false, Window) guiSetFont(btnmp5, "default-bold-small") btnak = guiCreateButton(128, 100, 98, 44, "6500$ x 200", false, Window) guiSetFont(btnak, "default-bold-small") btnpistol = guiCreateButton(10, 245, 98, 44, "300$ x 50", false, Window) guiSetFont(btnpistol, "default-bold-small") btngranade = guiCreateButton(249, 379, 98, 44, "3000$ x 10", false, Window) guiSetFont(btngranade, "default-bold-small") btnteargas = guiCreateButton(128, 379, 98, 44, "1800$ x 10", false, Window) guiSetFont(btnteargas, "default-bold-small") btnuzi = guiCreateButton(10, 379, 98, 44, "3500$ 150", false, Window) guiSetFont(btnuzi, "default-bold-small") Cerrar = guiCreateButton(321, 444, 122, 28, "Cerrar", false, Window) guiSetFont(Cerrar, "default-bold-small") m4 = guiCreateStaticImage(16, 30, 82, 66, ":WeaponShop/img/M4.png", false, Window) Ak = guiCreateStaticImage(134, 32, 86, 64, ":WeaponShop/img/AK-47.png", false, Window) mMp5 = guiCreateStaticImage(255, 33, 86, 57, ":WeaponShop/img/MP5.png", false, Window) Parachute = guiCreateStaticImage(496, 308, 86, 57, ":WeaponShop/img/PARACHUTE.png", false, Window) Spaz = guiCreateStaticImage(372, 33, 85, 62, ":WeaponShop/img/SPAZ-12.png", false, Window) Pistol = guiCreateStaticImage(16, 180, 86, 55, ":WeaponShop/img/pistol.png", false, Window) Rifle = guiCreateStaticImage(617, 42, 89, 53, ":WeaponShop/img/rifle.png", false, Window) Satchel = guiCreateStaticImage(374, 310, 83, 59, ":WeaponShop/img/satchel.png", false, Window) Sawnoff = guiCreateStaticImage(500, 33, 78, 62, ":WeaponShop/img/sawnoff.png", false, Window) Deagle = guiCreateStaticImage(132, 181, 84, 54, ":WeaponShop/img/deagle.png", false, Window) Knife = guiCreateStaticImage(626, 312, 85, 57, ":WeaponShop/img/knife.png", false, Window) Granada = guiCreateStaticImage(252, 312, 85, 57, ":WeaponShop/img/nade.png", false, Window) Tec = guiCreateStaticImage(617, 176, 88, 59, ":WeaponShop/img/tec9.png", false, Window) Sniper = guiCreateStaticImage(495, 176, 87, 55, ":WeaponShop/img/sniper.png", false, Window) Silenced = guiCreateStaticImage(252, 181, 85, 54, ":WeaponShop/img/silenced.png", false, Window) Shoutung = guiCreateStaticImage(379, 184, 82, 57, ":WeaponShop/img/shotgun.png", false, Window) Uzzi = guiCreateStaticImage(20, 319, 78, 50, ":WeaponShop/img/uzi.png", false, Window) Gas = guiCreateStaticImage(137, 318, 79, 51, ":WeaponShop/img/teargas.png", false, Window) end ) addEventHandler("onClientGUIClick", root, function() if source == Cerrar then guiSetVisible(Window,false) showCursor(false) setElementFrozen( localPlayer, false ) end end ) bindKey("F2","down",function() guiSetVisible(Window,not guiGetVisible(Window)) showCursor(guiGetVisible(Window)) end )
  7. No se que tanto problema te haces con 1 timer, pero si te obsecionas con eso, se puede hacer todo en client side y trigear a server solamente para spawnear.
  8. crea un colshape o un marker invisible para comprobar si está en él.
  9. une tu función lol con togglestaffMode
  10. local vehroleq = createVehicle ( 436, -1323.3212890625, 2702.109375, 49.833282470703 ) setElementRotation ( vehroleq, 0,0,210 ) function lice( player ) if source == vehroleq then return end if getElementData( player, "carLicence" ) then outputChatBox ( "Si Ves esto funciona", player, 255, 193, 37, true ) else outputChatBox ( "No Tienes Licencia de Autos", player, 255, 193, 37, true ) cancelEvent ( ) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lice )
  11. En tu código, llegará un momento en que "HP" será mayor que "vida" y empezará la resta.
  12. Podrías usar quizá el onClientElementColShapeHit y el onClientElementColShapeLeave
  13. if HP > 98 then return end
  14. Tienes que definir al vehículo
  15. Este no es el firezhost que un día vi por aquí? hahahaha sinceramente yo no recomiendo nada de lo que ofrecen aquí, en buena hora yo no compré ahí hace mucho, es mejor manejarse un vps o buscar otro host con más antiguedad, el ping que ofrecen para un servidor de juegos es malísimo, apuesto a que con un ddos caen, además quienes son los que darán soporte? los 2 críos de aquí? (aprobando con imágenes de galletas, gran seriedad!) antes prefiero poner mi server en mi pc o en uh host que tenga más experiencia, lo barato, sale al final caro, saludos. PD: No es un foro de negocios así que no es desvirtuar por si algo me dirán que lo imagino y los ignoraré.
  16. ?osea que no le permita a los usuarios tener mas de 2 blips También puedes hacerlo con tablas o con un setElementData
  17. Sensacion

    Shout Admin

    Con eso no tendría sentido usar el settings
  18. Sensacion

    Shout Admin

    asi? local sx, sy = guiGetScreenSize() local sx = sx / 2 local sy = sy / 2 function drawText() local r,g,b = (0,128,255) local width = dxGetTextWidth(theText, 3, "default") local height = dxGetFontHeight(3, "default") local leftB = sx - width / 2 local topB = sy - (height + 5) local left = sx - width / 2 local top = sy - height dxDrawText(theText, leftB+2, topB+2, left, top, tocolor(0, 0, 0, 255), 3, "default-bold", "left", "top", false, true, true) dxDrawText(theText, leftB, topB, left, top, RGBColor(r,g,b), 3, "default-bold", "left", "top", false, true, true) end draw = false function drawShout(text) if not draw then theText = text addEventHandler("onClientRender", root, drawText) draw = true setTimer(function() draw = false removeEventHandler("onClientRender", root, drawText) end, 5000, 1) end end addEvent("onShouts", true) addEventHandler("onShouts", root, drawShout) function RGBColor(red, green, blue) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255)) then return end No, donde están las variables que representan los valores obtenidos del settings?
  19. Sensacion

    Shout Admin

    obtienes los 3 colores del settings, mandas esos valores a client, y ahí puedes poner algo como: local r, g, b = var1, var2, var3
  20. Sensacion

    Shout Admin

    claro pero para el color del texto que get uso? en el local r,g,b Ponle variables
  21. Sensacion

    Shout Admin

    usando la función get obtienes lo del setting
  22. Sensacion

    Shout Admin

    Te dejo el que yo uso, ponlo en client: local sx, sy = guiGetScreenSize() local sx = sx / 2 local sy = sy / 2 function drawText() local width = dxGetTextWidth(theText, 3, "default") local height = dxGetFontHeight(3, "default") local leftB = sx - width / 2 local topB = sy - (height + 5) local left = sx - width / 2 local top = sy - height dxDrawText(theText, leftB, topB, left, top, tocolor(255, 0, 0, 255), 3, "default", "left", "top", false, true, true) end draw = false function drawShout(text) if not draw then playSoundFrontEnd(5) theText = text addEventHandler("onClientRender", root, drawText) draw = true setTimer(function() draw = false removeEventHandler("onClientRender", root, drawText) end, 8000, 1) end end addEvent("onShouts", true) addEventHandler("onShouts", root, drawShout)
×
×
  • Create New...