Jump to content

Absence2

Members
  • Posts

    267
  • Joined

  • Last visited

Everything posted by Absence2

  1. Absence2

    Server Problem.

    http://linux.multitheftauto.com/ download the required files & upload them onto your server on serverFFS. Also I recommend upgrading to 1.3 instead @Jay, I have tried serverFFS and from the looks of it, it was quite good. I had a two month contract with them and had massive issues in the start. It was later found out that my server was being ddosed. So a part from that, I've never had any real problems even though there has been many negative reviews regarding serverFFS. viewtopic.php?f=116&t=27667
  2. I usually don't play with guns, so I'm not sure, but it could work, try setPedStat setWeaponProperty together with setGlitchEnabled
  3. should just read this: https://wiki.multitheftauto.com/wiki/SetGlitchEnabled
  4. setWeaponProperty ( "sawnoff_shotgun", "pro", "maximum_clip_ammo", 1000 )
  5. Absence2

    policejob help

    what exactly do you want to do with the wanted levels? getPlayerWantedLevel setPlayerWantedLevel
  6. Trust me, I had no intention of bashing any server but Grimz, ShoDown & Valhalla. I never had the chance to log on Asylum, so I wouldn't know whether it was good or bad. Oh yes, this is infact common for servers with low playerbase. As the Admins gets bored aswell as the Players due to the lack of players, they have no intention of staying. Therefore they mess around before they leave, sadly Best thing to do to prevent this is to invite a whole package of players at once, reaching 100 players within a night. But I doubt that will never happen, . People are too used to their stats on other servers. Most will stick to their current servers till they get banned or quit MTA.
  7. Absence2

    Need scripts

    I can assure you that blazy can script better than you can, jeremaniak. viewtopic.php?f=91&t=41510 well, I don't really know why you need jobs when you're on vG scripts you could just try and mass-edit them, shouldn't be too hard. One suggestion is to edit the taxi job, basically make it a bus job with checkpoints as it's the most useless job on RP servers, rarely used.
  8. here: https://wiki.multitheftauto.com/wiki/Scr ... troduction this should cover up everything, try doing it yourself, then come back for help. https://wiki.multitheftauto.com/wiki/OnPlayerWasted onPlayerWasted fadeCamera spawnPlayer setTimer
  9. so you're basically saying people make servers for owner status? Everyone who has a server tries to improve, all the time, in other words, perfect a thing and another. If not, the server would be a flat tire instead of a rolling one. The majority of server owners have that "mission" to perfect his/her server, if not, better close it down. The server would completely fail. And since we're talking roleplay servers here, ShoDown are crashing every fifth second or so. The owner's solution was to create a command, giving the player 2,5k by using it after the crash. Their economy is fucked up and that command sure doesn't help. They also added another command that teleports your vehicle or something like that. Since this topic is about RP servers, why not do throw ShoDown in the garbage? It is slowly turning out to be a fail RPG server, but mostly better than any RPG server as every RPG server is DM. Minus the server crashes and the Owner's stubborn attitude, they could easily increase their quality and most people would probably join ShoDown instead of other RPG servers if they just changed their name: "ShoDown Light RP / RPG". Grimz, I have actually never been online here, due to the fact that I have to download freaking 170+ MB of resources. So I wouldn't know anything about it, I couldn't care less though, I've heard it's less moderated & organized than ShoDown. aero, your server, Asylum, is known for it's corruption. Your scripts are shared all over the internet, due to corruption. Plus the constant admin abuse, (based on your server thread), though you seemed to take care of that rather quickly. Valhalla, no, just no, I can't stand their Admin's ragekid attitude. They threatened me because I broke a single rule, and yes, I mean THREATEN. Arsenic, as mentioned above, is probably the only server you'll find a good mix of Roleplay & Friendly-ness. They only lack playerbase, hopefully that will improve, because many out there are stuck in a loop, constantly switching between these servers. So far, neither of them can satisfy me due to the fact that the small, friendly servers lacks playerbase or roleplay. Hopefully someone will take Valhalla's place, I don't really care what server it is, they just need to keep their friendly faces up while speaking to the players whom actually ARE the server itself. Convince a stunning amount of players, let's say 150, to logout from Valhalla on a Saturday, the outcome would be shocking for all of us.
  10. you might want to re-read your last script there. function showSpeedPic() rect = dxDrawRectangle(20.0,209.0,295.0,255.0,tocolor(0,0,0,140),false) dxDrawImage( 28.0,217.0,279.0,238.0, screen) --this part end function removeDaAnnoyingThingy() removeEventHandler("onClientRender", root, showSpeedPic) end
  11. explain better https://wiki.multitheftauto.com/wiki/AddCommandHandler https://wiki.multitheftauto.com/wiki/Gui ... taticImage https://wiki.multitheftauto.com/wiki/DxDrawImage
  12. https://community.multitheftauto.com/index.php?p= ... ls&id=3580 https://community.multitheftauto.com/index.php?p= ... ls&id=4060
  13. I don't like this scripterr guy very much, he keeps coming here with stolen scripts !
  14. I thought that was the problem, the loginwindow shows after pressing Cancel then hides register. I suppose he wanted to hide both
  15. I added this without telling you, that might be the problem function registerWindowCancel(button,state) if(button == "left" and state == "up") then if (source == btnCancel) then guiSetVisible(wdwRegister, false) guiSetVisible(wdwLogin, true) end end end It will show loginwindow after pressing Cancel just delete the wdwLogin part if you don't want the login window to show if you press Cancel NOTE: this part exists in the clientside I posted before, mess around with it there
  16. https://wiki.multitheftauto.com/wiki/TriggerClientEvent
  17. you have syntax errors GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(484,199,553,326,"[@~Call OF Duty MW3 Settings @~]",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(9,20,535,194,"images/COD.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(386,256,158,43,"Yes, i Want",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Button[2] = guiCreateButton(9,251,159,46,"No, i Dont",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[2],"clear-normal") GUIEditor_Label[1] = guiCreateLabel(111,221,364,16,"Do You Want To Show COD MW3 Level System And Exp ?",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") addEvent ( "playSound" , true ) addEventHandler ( "playSound" , root , function() playSound ( "sounds/levelup.wav" , false ) end) GUIEditor_Window = {} GUIEditor_Grid = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[2] = guiCreateWindow( 423,220,477,311,"Level_System v3.0 ",false ) guiWindowSetMovable( GUIEditor_Window[2],false ) guiWindowSetSizable( GUIEditor_Window[2],false ) guiSetVisible( GUIEditor_Window[2],false ) GUIEditor_Grid[1] = guiCreateGridList( 9,21,264,281,false,GUIEditor_Window[2] ) guiGridListSetSelectionMode( GUIEditor_Grid[1],2 ) col = guiGridListAddColumn( GUIEditor_Grid[1],"Players",0.90 ) GUIEditor_Label[1] = guiCreateLabel( 286,43,144,23,"Level:",false,GUIEditor_Window[2] ) guiLabelSetColor( GUIEditor_Label[1],0,255,0 ) guiSetFont( GUIEditor_Label[1],"clear-normal" ) GUIEditor_Label[2] = guiCreateLabel( 284,95,102,21,"EXP:",false,GUIEditor_Window[2] ) guiLabelSetColor( GUIEditor_Label[2],0,0,255 ) guiSetFont( GUIEditor_Label[2],"clear-normal" ) GUIEditor_Image[1] = guiCreateStaticImage( 266,152,182,146,"images/mtalogo.png",false,GUIEditor_Window[2] ) if (col) then for _, player in pairs( getElementsByType 'player' ) do row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText( GUIEditor_Grid[1],row,col,getPlayerName( player ),false,false ) end end addEventHandler( 'onClientGUIClick',root, function( ) if (source == GUIEditor_Grid[1]) then local theRow, theCol = guiGridListGetSelectedItem( source ) if (theRow and theCol and theRow ~= -1 and theCol ~= -1) then local playerName = guiGridListGetItemText( source,theRow, theCol ) local player = getPlayerFromName(playerName) if (player and isElement(player)) then local theEXP = getElementData(player, "ExP") or 0 local theLevel = getElementData(player, "Level") or 0 guiSetText(GUIEditor_Label[1], "Level: ".. tostring(theLevel)) guiSetText(GUIEditor_Label[2], "EXP: ".. tostring(theEXP)) else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end else guiSetText(GUIEditor_Label[1], "Level:") guiSetText(GUIEditor_Label[2], "EXP:") end end end ) function levelup () local Exp = getElementData(localPlayer,"ExP") local Level = getElementData(localPlayer,"Level") if isElement(expLabel) then destroyElement(expLabel) end expLabel = guiCreateLabel(0.777,0.22,0.1708,0.0963,"ExP gained: ??\nTotal ExP: ".. tostring(Exp) .."\nLevel: ".. tostring(Level),true) guiLabelSetColor(expLabel,0,255,0) guiLabelSetVerticalAlign(expLabel,"top") guiLabelSetHorizontalAlign(expLabel,"left",false) guiSetFont(expLabel,"clear-normal") setTimer ( levelup, 2000, 1) end setTimer ( levelup, 2000, 1) addEventHandler( 'onClientGUIClick',root, function() if (source == GUIEditor_Button[1]) then outputChatBox("All Settings Are Enabled",source,255,255,0) elseif (source == GUIEditor_Button[2]) then call(getResourceFromName("scoreboard"), "removeScoreboardColumn", "EXP") call(getResourceFromName("scoreboard"), "removeScoreboardColumn", "Level") guiSetVisible ( GUIEditor_Window[1], false ) guiSetVisible ( GUIEditor_Window[2], false ) outputChatBox("All Sestings Are Disbled",255,255,0) end end )
  18. wtf, what is this lol? https://wiki.multitheftauto.com/wiki/Scr ... troduction start over from scratch man
  19. you have to add access in acl.xml Server have to be offline
  20. I don't get it.. it works, but it doesn't? Anyways, I tested the script I posted, it works, all of it, use it instead. Replace everything you have with it, server & client.
  21. client: -- create our loginHandler function, with username and password parameters (passed from the client GUI). function loginHandler(username,password) -- check that the username and password are correct. local acc = getAccount(username, password) -- the player has succesfully logged in, so spawn them. if (acc) then logIn ( source, acc, password ) spawnPlayer (source, 1959.55, -1714.46, 10) fadeCamera(source, true) setCameraTarget(source) outputChatBox("Enjoy your time!", source) 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.", source) end end -- define our costom event, and allow it to be triggered from the client ('true'). addEvent("submitLogin",true) -- add an event handler so that when submitLogin is triggered, the function loginHandler is called. addEventHandler("submitLogin",root, loginHandler) function createLoginWindow() -- define the X and Y positions of the window local X = 0.335 local Y = 0.375 -- define the width and height of the window local Width = 0.35 local Height = 0.25 -- create the window and save it's element value into the variable "wdwLogin" wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please login with your username and password", true) -- define new X and Y positions for the first label. X = 0.0825 Y = 0.230 -- define new Width and Height values for the first label. Width = 0.50 Height = 0.50 -- 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.53 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) X = 0.700 Y = 0.7 Width = 0.25 Height = 0.2 btnRegister = guiCreateButton(X, Y, Width, Height, "Register", true, wdwLogin) -- now add our onClientGUIClick event to the buttons we just created. addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) addEventHandler("onClientGUIClick", btnRegister, createRegisterWindow1, false) -- make the login window invisible guiSetVisible(wdwLogin, false) end -- create the function and define the 'button' and 'state' parameters. -- (these are passed automatically by onClientGUIClick) function clientSubmitLogin(button,state) -- if our login button was clicked with the left mouse button, and the state of the mousebutton is up: 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", localPlayer, username, password) -- move the input focus back on the game (allowing players to move arround, open the chatbox, etc) guiSetInputEnabled(false) -- hide the window and all the components. guiSetVisible(wdwLogin, false) -- hide the mouse cursor. 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 --------------------------------------------------------------------------------------------------------- -- create the function and define the 'button' and 'state' parameters. -- (these are passed automatically by onClientGUIClick) function createRegisterWindow1(button,state) -- if our login button was clicked with the left mouse button, and the state of the mousebutton is up: if button == "left" and state == "up" then createRegisterWindow() end end function createRegisterWindow() -- define the X and Y positions of the window local X = 0.335 local Y = 0.375 -- define the width and height of the window local Width = 0.35 local Height = 0.25 -- create the window and save it's element value into the variable "wdwLogin" -- click on the function's name to read its documentation. wdwRegister = guiCreateWindow(X, Y, Width, Height, "Please register with an username and password", true) -- define new X and Y positions for the first label. X = 0.0825 Y = 0.230 -- define new Width and Height values for the first label. Width = 0.50 Height = 0.50 -- 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, wdwRegister) -- alter the Y value so the second label is slightly below the first. Y = 0.53 guiCreateLabel (X, Y, Width, Height, "password", true, wdwRegister) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit (X, Y, Width, Height, "", true, wdwRegister) Y = 0.5 edtPass = guiCreateEdit (X, Y, Width, Height, "", true, wdwRegister) -- 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 btnCancel = guiCreateButton(X, Y, Width, Height, "Cancel", true, wdwRegister) X = 0.700 Y = 0.7 Width = 0.25 Height = 0.2 btnRegister = guiCreateButton(X, Y, Width, Height, "Register", true, wdwRegister) -- now add our onClientGUIClick event to the button we just created. addEventHandler("onClientGUIClick", btnCancel, registerWindowCancel, false) addEventHandler("onClientGUIClick", btnRegister, registerPlayer1, false) -- make the window visible guiSetVisible(wdwRegister, true) -- make the window invisible guiSetVisible(wdwLogin, false) end -- create the function and define the 'button' and 'state' parameters. -- (these are passed automatically by onClientGUIClick) function registerWindowCancel(button,state) if(button == "left" and state == "up") then if (source == btnCancel) then guiSetVisible(wdwRegister, false) guiSetVisible(wdwLogin, true) end end end function registerPlayer1(button,state) if(button == "left" and state == "up") then if (source == btnRegister) then local username = guiGetText(edtUser) local password = guiGetText(edtPass) triggerServerEvent("regmePls",getLocalPlayer(),username,password) end end end -- attach the event handler to the root element of the resource. -- this means it will only trigger when it's own resource is started. addEventHandler("onClientResourceStart", resourceRoot, function () -- create the log in window and it's components. createLoginWindow() -- output a brief welcome message to the player outputChatBox("Welcome to BlackDeath's Alpha Server, Please log in with the login information provided to you") -- 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 been created, tell the player. outputChatBox("An unexpected error has occurred and the login GUI has not been created.") end -- enable the players cursor (so that 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 ) server: -- create our loginHandler function, with username and password parameters (passed from the client GUI). function loginHandler(username,password) -- check that the username and password are correct. local acc = getAccount(username, password) -- the player has succesfully logged in, so spawn them. if (acc) then logIn (source, acc, password) spawnPlayer (source, 1959.55, -1714.46, 10) fadeCamera(source, true) setCameraTarget(source) outputChatBox("Enjoy your time!", source) 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.", source) end end -- define our costom event, and allow it to be triggered from the client ('true'). addEvent("submitLogin",true) -- add an event handler so that when submitLogin is triggered, the function loginHandler is called. addEventHandler("submitLogin",root, loginHandler) addEvent("regmePls",true) function canRegister(username,password) if not (username == "") then if not (password == "") then local account = getAccount (username,password) if ( not getAccount ( username ) ) then if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then outputChatBox ( "Thank you " .. getPlayerName ( source ) .. ", Ya estas Registrado ahora loggeate", source ) else outputChatBox ( "Error creating account, contact the server admin.", source ) end end else outputChatBox ( "This account already exists..", source ) end else outputChatBox ( "Please enter a password", source ) end else outputChatBox ( "Please enter a username", source ) end end addEventHandler("regmePls",getRootElement(),canRegister) replace all yours with this
×
×
  • Create New...