Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. global variable: handlerExist = false function show_dx () if (handlerExist) then removeEventHandler("onClientRender",rootElement, create2DRectangle) handlerExist = false showCursor(false) else addEventHandler("onClientRender",rootElement, create2DRectangle) handlerExist = true showCursor(true) end end bindKey ( "m", "down", show_dx )
  2. screen -A -m -d -S mta ./mta-server (use this ONCE!, nothing will shop up, but the server will be running)
  3. if you are admin you can "force" client console to do something.. like force someone do to "say I'm stupid"
  4. as far as i remember you got (on this forum few days ago) a solution for gate opening.. just add money checking and taking..
  5. local distance = 10 -- 10 units in front local xx, yy, zz = getElementPosition(getLocalPlayer()) local rot = getPedRotation(getLocalPlayer()) local lx = xx + math.sin (math.rad(-rot)) * distance local ly = yy + math.cos (math.rad(-rot)) * distance -- use the lx and ly values
  6. if you will enter correct password, you wont have to do it three times maybe you've registered on one server, and trying to loing on another one?
  7. duuude!! don't act like COOKIE2, or you will be hated too .. if you post problem in one topic, stick to it, and wait for reply, don't make another one about same problem!
  8. dzek (varez)

    gui???

    @karlis, @Taalasmaa and others his nickname is COOKIE2, not COOKIE12 or COOKIE
  9. i dont know your net speed, but most of my players got around 1-2 Mbit.. so average is 160KB/s 4 minutes of downloading. my average is around 100, sometimes more, sometimes less.. i downloaded once 70MB from one server, it took 17 minutes, great! and imagine the situation: most ppl got around 64KB/s upload max. if they host servers on own internet connection .. its crazy.. 5 ppl connecting, so download drops to 12,8KB/s, BUT game data trasnfer is around 4KB/s for player i think (im not sure), so 8KB/s its real.. try to download 30MB with 8KB/s
  10. /server/mods/deathmatch/resources there are your maps.. and.. no. you cant just copy and paste it to SAMP as i said you on msn, use mta tools for mta ^^
  11. yea, but it will be giving it every 3 secs in that one i think author confused time and money in setting timer
  12. your script.. its totally random! you just ignored getElementsByType("player") (i told you about that) and you are passing text that you dont use, and you are using unexisting variables (thePlayer) here's the code (hope you will think on it, not just copy and paste) function PayDay(howMuch) local playerList = getElementsByType("player") -- we are getting all players for key,val in ipairs(playersList) do -- we are looping through all players -- val is one of the players givePlayerMoney(val, howMuch) -- we give howMuch variable, passed in setTimer end outputChatBox("Payday: $"..howMuch) -- we are outputting chatbox message to everyone on the server end local mins = 30 -- every X minutes payday will be done local howMuch = 1000 -- we are setting variable defining the money to give -- we are setting timer (check: [url=https://wiki.multitheftauto.com/wiki/SetTimer]https://wiki.multitheftauto.com/wiki/SetTimer[/url]) setTimer(PayDay, mins*60*1000, 0, howMuch) -- function | time (in ms!, that why its multiplied by 1000 and 60 (1000ms = 1 sec, 1 sec*60 = 1 min, and mins(30)*1 min = 30mins) | infinite repeating | how much money to give
  13. you know ANY scripting? events: [server side] addEventHandler("onPlayerLogin", getRootElement(), function(thePreviousAccount, theCurrentAccount, autologin) -- source is player that logged in.. -- more info: [url=https://wiki.multitheftauto.com/wiki/OnPlayerLogin]https://wiki.multitheftauto.com/wiki/OnPlayerLogin[/url] -- code here end) functions: -- if you want to set spawnpoint/whatever for player NICKNAME: getPlayerName -- but i think it will be better to set spawnpoint for ACCOUNT NAME [login] getAccountName -- after checking name/login setElementPosition
  14. https://wiki.multitheftauto.com/wiki/Known_Issues_-_FAQ
  15. http://www.golubev.com/hashgpu.htm dont use md5 and sha1 if you care about security.. but.. its game.. nobody will hack the server, to gain access to database, then get md5 hashes to recover original passwords, and then... i dont know what.. steal virtual money from one rpg server and give all to one player? ban & database backup restore
  16. your tryings are worthless, xbost.. he will edit that script
  17. dude, you just need to know how it's working please explain what you are trying to do, and i can help you
  18. hes editing his post even after my reply? nice! and he want to make pickup working for only one player.. i bet its admin
  19. please.. forget the 2nd parametr in php.. you dont need it! one parametr
  20. databases have own md5 functions too use it? like "SELECT * FROM users WHERE login='"..my_login.."' MD5(pass)='"..my_pass.."' LIMIT 1"
  21. tell me what are you trying to do i'm working with php and lua every day
×
×
  • Create New...