Jump to content

iiKings

Members
  • Posts

    39
  • Joined

  • Last visited

Details

  • Gang
    Guns

iiKings's Achievements

Rat

Rat (9/54)

0

Reputation

  1. So im doing a drug panel and i dont really know what to use to draw a counter that tells the user how much time is remaining the effect. I want to draw into the bottom of the screen a counter that is goes, what should i use?
  2. unbindKey y luego bindKey a la funcion
  3. Una ultima duda alex, el proposito de todo esto es porque true or false = false verdad?
  4. y yo mareandome a probar con while y tal y resulta que era algo mas simple... Gracias de nuevo! El not en que difiere al false? Segun entiendo, el not es como si simplemente dejase de que fuera visible, mientras que el false hacia que no apareciera más, me equivoco?
  5. Gracias, el problema es que despues de una vez de darle a f2 y quitarlo ya no vuelve a aparecer mas.
  6. He estado trabajando con commandhandler para hacer diferentes scripts hasta ahora, pero en este momento quiero hacer gui's y tengo un problema. addEventHandler("onClientKey",root, function (button, press) if button == "F2" and press then addEventHandler("guiSetVisible", root,function () screenW, screenH = guiGetScreenSize() ventanaGangs = guiCreateWindow((screenW - 233) / 2, (screenH - 383) / 2, 233, 383, "Panel Gangs", false) guiWindowSetSizable(ventanaGangs, false) guiSetAlpha(ventanaGangs, 0.87) botonInvitar = guiCreateButton(15, 31, 80, 26, "Invitar", false, ventanaGangs) GUIEditor.button[1] = guiCreateButton(143, 31, 80, 26, "", false, ventanaGangs) GUIEditor.button[2] = guiCreateButton(15, 82, 80, 26, "", false, ventanaGangs) GUIEditor.button[3] = guiCreateButton(143, 82, 80, 26, "", false, ventanaGangs) end ) end end ) Quiero que cuando el jugador presione f2 se abra el panel, pero no lo consigo.
  7. Ya lo entendí ayer, mientras miraba otros scripts!! Muchas gracias
  8. Veo que no.Me he dejado bastante. Son demasiadas condiciones y logica para llegar al proposito, me he dejado un buen trecho!!. Será porque vengo de otro lenguaje xD...
  9. Sí muchas gracias, el script que hize yo funcionaria? (sé que es algo rápido y no hay tantas condiciones, pero funcionaria?)
  10. Hola aka blue, muchas gracias aunque debo de decirte que no era para nada serio, simplemente era para aprender.
  11. function darDinero (jugador, comando, cantidad, jugador2) dineroActual = getPlayerMoney(Jugador) setPlayerMoney(jugador, dineroActual - cantidad) givePlayerMoney(jugador2, dineroActual + cantidad) addCommandHandler("pagar",darDinero) consiste en que al poner /pagar 100 pepito, pepito recibirá 100 y al jugador que ejecuta el comando se le descontará la cantidad
  12. function consoleGive ( thePlayer, commandName, weaponID, ammo ) local status = giveWeapon ( thePlayer, weaponID, ammo, true ) -- attempt to give the weapon, forcing it as selected weapon if ( not status ) then -- if it was unsuccessful outputConsole ( "Failed to give weapon.", thePlayer ) -- tell the player end end addCommandHandler ( "give", consoleGive ) Una duda, si en la función no especificase commandName, el script dejaría de funcionar?
×
×
  • Create New...