Jump to content

wambosf

Members
  • Posts

    5
  • Joined

  • Last visited

About wambosf

  • Birthday January 27

Details

  • Gang
    Warriors
  • Location
    Chile
  • Occupation
    :v

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

wambosf's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Muchísimas gracias @#Dv^ @Hit+ cómo puedo borrar el tópico?
  2. Muchísimas gracias men, me sirvió mucho! Pero una consulta, para colcarle un settimer como tendría que hacerlo? Para evitar que los jugadores activen esa opción muy rápido y no sea una molestia
  3. Hola a todos, soy muy novato en esto del scripting. Hace unos días trato de incorporar una opción de modo pasivo en F1, algunos sabrán lo que es el Modo pasivo (Si te activas esto estás completamente fuera del deathmatch, nadie te puede matar y tu tampoco puedes hacerlo), y bueno, he tratado de hacerlo en una checkbox, de forma sencilla, pero una vez activado ya no se puede desactivar. Y nosé como puedo hacer que al desmarcar la checkbox, se vuelva al modo normal (deathmatch) y aparezca un mensaje en el Chatbox de "Modo Pasivo desactivado". Por favor necesito si alguien me puede ayudar, o sugerir algo, llevo todo el día de ayer y hoy intentándolo pero nada. --------------------------- -- Pasive Mode Player --------------------------- addEventHandler ("onClientPlayerDamage",getRootElement(),function(attacker,weapon,bodypart) if attacker then if getElementData (attacker,"antidm") ==true or getElementData(source,"antidm")==true then cancelEvent() end end end) --------------------------- -- Pasive Mode Vehicles --------------------------- addEventHandler ("onClientVehicleDamage",getRootElement(),function(theAttacker,theWeapon) if theAttacker then if getVehicleOccupant (source,0) then if getElementData (theAttacker,"antidm") or getElementData (getVehicleOccupant(source,0),"antidm") then cancelEvent() end end end end) --------------------------- --Pasive Mode --------------------------- function togglePasiveMode () guiCheckBoxSetSelected(getControl(wndMain, 'pasivo')) setElementData(source,"antidm",true) toggleControl (source, "fire", false) toggleControl (source, "aim_weapon", false) outputChatBox ("Modo Pasivo exitosamente activado!",0,255,0) end Todo esto lo puse dentro del fr_client.lua, y esto es lo que edité de él: {'chk', id='lightson', text='Lights on', onclick=forceLightsOn}, {'chk', id='lightsoff', text='Lights off', onclick=forceLightsOff}, {'chk', id='pasivo', text='Modo Pasivo', onclick=togglePasiveMode}, Muchas gracias de antemano!
  4. Hola a todos, soy bastante nuevo en este tema de los foros y el scripting. Estoy tratando de hacer un sistema de niveles pero tengo una duda sobre como hacer de que eljugador gane experiencia matando a otros. Me guié por un sistema de niveles basado en zombies. Y era esto: addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( theKiller ) exports.exp_system:addPlayerEXP ( theKiller, 10) end ) Y lo cambié a esto addEvent ( "onPlayerWasted", true ) addEventHandler ( "onPlayerWasted", root, function ( theKiller ) exports.exp_system:addPlayerEXP ( theKiller, 10) end ) Pero no me añade experiencia, alguien me podría ayudar? PD: Vuelvo a repetir, soy muy novato en esto jajaja
×
×
  • Create New...