Jump to content

Help panel F1 // Ayuda panel F1


Recommended Posts

English:

Good evening, I'm nax... 

I don't know much about programming but I'm learning little by little, I really need help with the F1 panel, since I've tried thousands of ways but nothing works... 

The situation is the following I need only three buttons, only three brother... Could someone please provide me with the code and the explanation of where to put each thing... The three buttons are "Deathmatch, no knife kills and no warp to you. (They are for a freeroam server that I am doing and I really swear that there is almost no information in Spanish, just like I still can't understand the damn mta guides... I just need those Three measly buttons, I know someone with knowledge who can do it in less than ten minutes must see it, please help me) :(

Español:

Buenas noches, soy nax...

No se mucho de programacion pero voy aprendiendo poco a poco, realmente necesito ayuda con el panel de F1, ya que he probado de mil maneras pero nada funciona...

La situación es la siguiente necesito solo tres botones, solo tres hermano... Alguien podría por favor darme el código y la explicación de donde poner cada cosa... Los tres botones son "Deathmatch, no knife kills y no warp (Son para un servidor freeroam que estoy haciendo y de verdad juro que casi no hay informacion en español, igual que sigo sin entender las malditas guias de mta... solo me faltan esos tres miserables botones,se que debe a ver alguien con conocimiento que puede hacerlo en menos de diez minutos, por favor ayúdenme) :(

Link to comment
local sw, sh = guiGetScreenSize()
local pw, ph = 300, 200
local px, py = (sw - pw) / 2, (sh - ph) / 2
local vis = false

local pnl = guiCreateWindow(px, py, pw, ph, "Freeroam Panel", false)
guiSetVisible(pnl, vis)

local btn1 = guiCreateButton(10, 30, 280, 40, "Deathmatch", false, pnl)
local btn2 = guiCreateButton(10, 80, 280, 40, "No Knife Kills", false, pnl)
local btn3 = guiCreateButton(10, 130, 280, 40, "No Warp To You", false, pnl)

function panel()
    vis = not vis
    guiSetVisible(pnl, vis)
    showCursor(vis)
end
bindKey("F1", "down", panel)

function b1click()
    -- Add your Deathmatch function here
    
end
addEventHandler("onClientGUIClick", btn1, b1click, false)

function b2click()
    -- Add your No Knife Kills function here
    
end
addEventHandler("onClientGUIClick", btn2, b2click, false)

function b3click()
    -- Add your No Warp To You function here
   
end
addEventHandler("onClientGUIClick", btn3, b3click, false)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...