Jump to content

TRANE152

Members
  • Posts

    21
  • Joined

  • Last visited

About TRANE152

  • Birthday 13/02/1999

Details

  • Location
    Russian Federation, Nizhny Novgorod

TRANE152's Achievements

Civilian

Civilian (7/54)

0

Reputation

  1. Maybe something wrong in server.lua:9 triggerClientEvent(source,"PlayerLogedOnClient",source)
  2. Semicolon is not required
  3. Thanks. Solution: https://wiki.multitheftauto.com/wiki/Account_PHP
  4. TRANE152

    internal.db

    How hashed passwords in a file /mtasa/mods/deathmatch/internal.db? sha256(password) ?
  5. Hello everyone. Server config: Ubuntu 13.10 Server v1.3.4-release-5927 Printer HP laserjet p1024 When server starts, i get this error: [HH:MM:SS] MODULE: Unable to find modules/mta_mysql.so (libmysqlclient.so.15: wrong ELF class: ELFCLASS64)! ... [HH:MM:SS] ERROR: resource/server.lua:1: attempt to call global 'mysql_connec t' (a nil value)
  6. I fear steal passwords. Because you can just go to ../mta/mods/deathmatch/resources/Accounts/xml_md5.xml and steal player username and password. It can do some viruses, friends and programs, like RAdmin.
  7. Can I set data to serial, for example remember username (and password)? Or use xml data on client-side? If this is not possible, can I set data in database, like MySQL? Sorry for any errors in the text, because I just started to learn English language.
  8. It works perfectly! Use server-side: addEventHandler ( "onPlayerQuit", getRootElement(), function ( ) local tm = getPlayerTeam ( source ) if tm then outputChatBox ( getTeamName(tm) .." quits" ) outputDebugString ( getTeamName(tm) .." quits") end end)
  9. If that does not work, then download another group system
  10. --server addEventHandler("onPlayerWasted", getRootElement(), function () setElementData (source, "weapon0", getPedWeapon (source, 0)) setElementData (source, "weapon1", getPedWeapon (source, 1)) setElementData (source, "ammo0", getPedTotalAmmo (source, 0)) setElementData (source, "ammo1", getPedTotalAmmo (source, 1)) -- etc. setTimer( spawnPlayer, 4000, 1, source, 1177.57, -1323.26, 14.1 ) outputChatBox ( getPlayerName ( source ).." died and was transported at All Saints Hospital.") end) addEventHandler("onPlayerSpawn", getRootElement(), function() local weapon0 = getElementData (source, "weapon0") local weapon1 = getElementData (source, "weapon1") local ammo0 = getElementData (source, "ammo0") local ammo1 = getElementData (source, "ammo1") giveWeapon (source, weapon0, ammo0, true) giveWeapon (source, weapon1, ammo1, true) --etc. fadeCamera(source, true, 2.0) end)
  11. Try this: --server addEventHandler("onZombieWasted", getRootElement(), function (attacker, weapon, bodypart) if weapon == "pistol" then if bodypart == "head" then setPedStat(localPlayer, 69, getPedStat(localPlayer,69)+3) elseif bodypart == "body" then setPedStat(localPlayer, 69, getPedStat(localPlayer,69)+2) else setPedStat(localPlayer, 69, getPedStat(localPlayer,69)+1) end elseif weapon == "shotgun" then if bodypart == "head" then setPedStat(localPlayer, 72, getPedStat(localPlayer,72)+3) elseif bodypart == "body" then setPedStat(localPlayer, 72, getPedStat(localPlayer,72)+2) else setPedStat(localPlayer, 72, getPedStat(localPlayer,72)+1) end end end)
  12. Learn from my mistakes? Well, you are right
  13. Does not work >< Can you write like this?
  14. The fact that I'm learning lua and still not very well get a hold of triggerClientEvent or triggerServerEvent (addEvent etc.) By the way, I touched on this topic due to the fact that you had to get an account(getPlayerAccount(Server-only function)), but the script is written in a client-side. Sorry for bad English skills.
×
×
  • Create New...