Jump to content

DLmass

Members
  • Posts

    74
  • Joined

  • Last visited

Everything posted by DLmass

  1. /me is getting angry becouse he can't get it *
  2. /me wanna download *
  3. DLmass

    Chaos District RPG

    still running?
  4. DLmass

    Router

    hey my router blocked my mtasa (can't connect to servers) can anyone help me?
  5. they are still getting hurted...
  6. x, y, size = 1844.5594482422, 1375.3376464844, 120 local greenzone = createColRectangle ( 1844.5594482422, 1375.3376464844, 284, 312.22 ) local greenzonemaparea = createRadarArea (1844.5594482422, 1375.3376464844, 284, 312.22, 0, 255, 0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end triggerClientEvent(thePlayer, "zoneEnter", thePlayer) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) removeEventHandler ("onClientPlayerDamage", getRootElement(), cancelEventEvent) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end triggerClientEvent(thePlayer, "zoneExit", thePlayer) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) removeEventHandler ("onClientPlayerDamage", getRootElement(), triggerEvent) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) i tried to add: removeEventHandler ("onClientPlayerDamage", getRootElement(), cancelEventEvent) but it diden't work... becouse players outside the greenzone can shoot players inside and that makes them die
  7. ohh, k ty
  8. https://wiki.multitheftauto.com/wiki/Sho ... dComponent but i want to move them
  9. hey... how do i move my default hud components for all the players on the server? thanks in advance
  10. DLmass

    createPed

    thanks
  11. DLmass

    createPed

    how do i create a ped in a interior? thanks in advance!
  12. haha du kan svenska
  13. i can script gates and spawns and other :~ i want to help Ok can you show me a script YOU made like a gate or a spawn and if it works I'll hand admin rights IF you can acces my server (Which I port forwarded( but no one joined ) [DOUBLE POST] IP?? PORT??
  14. I have no credit card or debit card no money....
  15. DLmass

    Chaos District RPG

    i can help you to msn: [email protected]
  16. i can script gates and spawns and other shits i want to help
  17. well i solved it, btw.. thanks for the help....
  18. Is this server hosted from your computer or somewhere else? = my computer It seems like the necessary HTTP port isn't open for the host.= i dont know
  19. hey... well the title talks when peoples join they are getting stuck on, downloading progress 0 b of 1202 kb idk whats wrong and it happening to me to. but not when i enter lan
  20. thx man you are the kindest man in the world some peoples have already learned scripting...... but not me, im learning like hell
  21. can you explain more like on (lua)
  22. i still can't figure out where to put it........
  23. CLIENT: function createLoginWindow() 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) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Username", true, wdwLogin 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, "username", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "password", true, wdwLogin) 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) guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createLoginWindow() outputChatBox("Welcome to My MTA:SA Server, please log in.") if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else outputChatBox("An unexpected error has occurred and the log in GUI has not been created.") end showCursor(true) guiSetInputEnabled(true) end ) function createLoginWindow() -- create all our GUI elements ... -- now add our onClientGUIClick event to the button we just created addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, true) 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 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 ) function loginHandler(username,password) -- check that the username and password are correct if username == "user" and password == "apple" then -- the player has successfully logged in, so spawn them if (client) then spawnPlayer(client, 1959.55, -1714.46, 10) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("Welcome", client) end else -- if the username or password are not correct, output a message to the player outputChatBox("Invalid username and password. Please re-connect and try again.",client) end end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler) SERVER: 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 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 function loginHandler(username,password) -- check that the username and password are correct if username == "user" and password == "apple" then -- the player has successfully logged in, so spawn them if (client) then spawnPlayer(client, 1959.55, -1714.46, 10) fadeCamera(client, true) setCameraTarget(client, client) outputChatBox("Welcome.", client) end else outputChatBox("Invalid username and password. Please re-connect and try again.",client) end end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler) The logingui is created as it should, but when i click on Login nothing happends...... what should i do i really need help
×
×
  • Create New...