Jump to content

Sensacion

Members
  • Posts

    186
  • Joined

  • Last visited

Details

  • Gang
    [CF] - Fenix
  • Location
    Internet
  • Occupation
    Script
  • Interests
    Scripting

Recent Profile Visitors

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

Sensacion's Achievements

Mark

Mark (16/54)

0

Reputation

  1. onClientVehicleDamage() cancelEvent()
  2. From the wiki: function ViroxLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please Log In", true) -- define new X and Y positions for the first label X = 0.0825 Y = 0.2 -- define new Width and Height values for the first label Width = 0.25 Height = 0.25 -- create the first label, note the final argument passed is 'wdwLogin' meaning the window -- we created above is the parent of this label (so all the position and size values are now relative to the position of that window) guiCreateLabel(X, Y, Width, Height, "Username", true, wdwLogin) -- alter the Y value, so the second label is slightly below the first Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) -- set the maximum character length for the username and password fields to 50 guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Log In", true, wdwLogin) -- make the window invisible guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(), function () -- create the log in window and its components ViroxLoginWindow() -- output a brief welcome message to the player outputChatBox("Welcome to My MTA:SA Server, please log in.") -- if the GUI was successfully created, then show the GUI to the player if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else -- if the GUI hasn't been properly created, tell the player outputChatBox("An unexpected error has occurred and the login GUI has not been created.") end -- enable the player's cursor (so they can select and click on the components) showCursor(true) -- set the input focus onto the GUI, allowing players (for example) to press 'T' without the chatbox opening guiSetInputEnabled(true) end ) function clientSubmitLogin(button,state) if button == "left" and state == "up" then -- get the text entered in the 'username' field local username = guiGetText(edtUser) -- get the text entered in the 'password' field local password = guiGetText(edtPass) -- if the username and password both exist if username and username ~= "" and password and password ~= "" then -- trigger the server event 'submitLogin' and pass the username and password to it triggerServerEvent("submitLogin", getRootElement(), username, password) -- hide the gui, hide the cursor and return control to the player guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else -- otherwise, output a message to the player, do not trigger the server -- and do not hide the gui outputChatBox("Please enter a username and password.") end end end
  3. Build this for centos 7, many of us have other projects running on this version, even companies like ovh only offer centos 7 and ovh is not a small company.
  4. /lib64/libc.so.6 version glibc_2.25' not found centos 7 Error for Centos 7, glibc version.
  5. Coloca las coordenadas, si continua, apaga el gamemode "play"
  6. Tienes que poner aclGetGroup("NOMBRE DEL GRUPO") Por ejemplo: aclGetGroup("Admin")
  7. For years the function of adding custom objects with their own id is still waiting. This is essential in server roleplay, since it is the path towards which the MTA points. And later maybe an own id for vehicles, some of us want to keep the original models and add extra vehicles.
  8. When can we add custom objects with custom id or add objects from the same MTA team? I think this is paramount.
  9. Sensacion

    Rotacion

    attachElements
  10. Crea la función "CortinasCompletas" aparte en client y ahí recién creas las texturas
  11. Si tienes esas 2 coordenadas, ya tienes también el de las que faltan.
×
×
  • Create New...