Jump to content

TorNix~|nR

Members
  • Posts

    503
  • Joined

  • Last visited

Everything posted by TorNix~|nR

  1. can you tell me how to install apt-get on centos 6 please?
  2. hey guys, my vps OS is CentOS 6 is the first time I get this, I reinstalled the vps, and I installed the server! when I start it with this command ./mta-server -d I get this libncursesw.so.5: cannot open shared object file: No such file or directory ERROR: Could not load ./core.so * Check installed data files. Press enter to continue... guys help please!
  3. addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), function () setPlayerHudComponentVisible ("crosshair", true ) end) nothing happend, only shows on aim help please?
  4. TorNix~|nR

    Crosshair

    hello guys, I want to make my crosshair always activate if the aim weapon or not, always the sitem16 is activated help please?
  5. hello guys, I made a script of jail with my friend @WASSIm. that if player get a 3 stars goes automaticly in jail, but I lost it on my old camputer, so can anyone help me to make it please?
  6. worked fine, thanks @NeXuS™ Did I help you? lot of Yes
  7. thank you, worked, but remaining vehicle explode and when I damage myself with Rocket lanucher, nothing happend help?
  8. Sorry I forgot it, here it is function nodamage() cancelEvent() end
  9. TorNix~|nR

    God mode

    Hello guys, I added godmode on my freeroam panel, it works fine but I want to make godmode only on damage by player example: when I fall down or when a vehicle explode, my health doesn't damage, I want to disable this only godmode with players Code function godmode() if ( guiCheckBoxGetSelected( getControl ( wndMain, 'godmode' ) ) == true ) then addEventHandler("onClientPlayerDamage", localPlayer, nodamage) else removeEventHandler("onClientPlayerDamage", localPlayer, nodamage) end end help please?
  10. Finally guys, it's worked fine, now it saves the serial on internal.db, thank you all.
  11. guys thanks for replying @TheMOG I won't it by command. I want it with the panel this is the Register, @xeon17 helped me on this Code -- Registration here function registerPlayer(username,password,passwordConfirm) if (getAccountCount(source) >= 2) then return end if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then triggerClientEvent(source,"hideRegisterWindow",getRootElement()) outputChatBox ("#0000FF* #FFFFFFYou have sucessfuly registered! [Username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",source,255,255,255,true ) setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) else outputChatBox ("#0000FF* #FFFFFFAn unknown error has occured! Please choose a different username/password and try again.",source,255,255,255,true ) end else outputChatBox ("#0000FF* #FFFFFFError! An account with this username already exists!",source,255,255,255,true ) end else outputChatBox ("#0000FF* #FFFFFFError! Passwords do not match!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please confirm your password!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please enter a password!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please enter a username you would like to register with!",source,255,255,255,true) end end function getAccountCount(player) local serial = getPlayerSerial(player) local accounts = getAccountsBySerial(serial) if(accounts) and (type(accounts == "table")) then return #accounts end return false end
  12. Sorry ,I don't understand
  13. TorNix~|nR

    Serials

    Hi guys, I working on script thats make players can't register more two account but don't work and when test to see how many accounts i have i see one account but i registered more then 3 accounts but when i see database (internal.db) i see my accounts don't register ip and serial sorry for my english
  14. Worked fine thank you so much.
  15. Thank you @xeon17, but I want a max attempts, that check the Serial I think is like this max accounts by serials: 2 local serial = getPlayerSerial(client) local accounts = getAccountsBySerial(serial) if #accounts > 2 then please help?
  16. hello guys, I tried many times to make it but it fails, I want to make a register max attemps on my login panel Code -- Registration here function registerPlayer(username,password,passwordConfirm) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then triggerClientEvent(source,"hideRegisterWindow",getRootElement()) outputChatBox ("#0000FF* #FFFFFFYou have sucessfuly registered! [Username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",source,255,255,255,true ) setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) else outputChatBox ("#0000FF* #FFFFFFAn unknown error has occured! Please choose a different username/password and try again.",source,255,255,255,true ) end else outputChatBox ("#0000FF* #FFFFFFError! An account with this username already exists!",source,255,255,255,true ) end else outputChatBox ("#0000FF* #FFFFFFError! Passwords do not match!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please confirm your password!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please enter a password!",source,255,255,255,true) end else outputChatBox ("#0000FF* #FFFFFFError! Please enter a username you would like to register with!",source,255,255,255,true) end end Help please?
  17. Thank you so much, worked fine ^^
  18. anyway bro thanks for replying
  19. no, there is a script made the drift with colors, not the wheels
  20. Hello guys! please can you tell me the name of this resources? when drifting there is colour help please!
  21. TorNix~|nR

    Server

    why there is no reply?
  22. TorNix~|nR

    Server

    Hello everyone, I'm searching for someone who can made a GangWars or Freeroam or Race server... etc (any gamemode) I want to add a new server to my community, if you can make it? talk with me on private If you want to see my mta server and website, see my signature.
  23. Hello guys! I have problem with my script, anyone help? Level Server exports.scoreboard:addScoreboardColumn ( "Level", getRootElement(), 9, 0.07 ) function scoreLevel () local account = getPlayerAccount(source) local level = getElementData(source,"level") or 0 if isGuestAccount ( account ) then setElementData(source, "level",":img/Guest.png") else local test = ":img/"..tostring(level)..".png" setElementData(source, "level", test and {type = "image", src = test, height = 12, width = 16} or "N/A") end end addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel) Scoreboard Client Debug: attempt to index global 'column' (a nil value) elseif column.name == "Level" then dxDrawImage( topX+theX, y-s(0.5), 30, 30, content, 0, 0, 0, cWhite, drawOverGUI )
×
×
  • Create New...