Jump to content

Jason_Gregory

Members
  • Posts

    184
  • Joined

  • Last visited

Everything posted by Jason_Gregory

  1. wow im starting to love his beard
  2. https://wiki.multitheftauto.com/wiki/Server_Manual
  3. Maybe you should take a look at this Wikipedia Topic https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
  4. outputChatBox( getPlayerName( someGuy ).." has in his pocket "..getPlayerMoney( someGuy ).."$ right now", getRootElement(), 0, 255, 0 ) root -> getRootElement()
  5. You can use it Client/Serverside, but Serverside is smarter for saving it directly into a Database. for clothesKey = 0, 17 do if getPedClothes(player, clothesKey) then texture, model= getPedClothes ( player, clothesKey ) setElementData(player, "texture#"..getClothesTypeName(clothesKey), texture) setElementData(player, "model #"..getClothesTypeName(clothesKey), model) end end https://wiki.multitheftauto.com/wiki/GetClothesTypeName
  6. @50p Yes ive read it, but i cant understand this shity english he talks Here´s your Code dude Clientside weaponSlots = 11 ammoSlot = {} gunSlot = {} for slot = 1, weaponSlots do if getPlayerWeapon ( player, slot ) then ammoSlot[slot] = getPlayerTotalAmmo ( player, slot ) gunSlot[slot] = getPlayerWeapon ( player, slot ) end end -- If you want save your WEAPON CODE later than you can use ElementData -> global for gun = 1, #gunSlot do if gunSlot[gun] ~= nil then setElementData(player, "weapon#"..gun, getWeaponNameFromID(gunSlot[gun]) setElementData(player, "ammo#"..gun, ammoSlot[gun]) end end If you find Errors post it
  7. https://wiki.multitheftauto.com/wiki/SetAccountData x, y, z = getElementPosition(player) setAccountData ( getPlayerAccount(player), "position", x..","..y..","..z) setAccountData ( getPlayerAccount(player), "skin", getElementModel(player)) setAccountData ( getPlayerAccount(player), "money", getPlayerMoney(player))
  8. Im working on a Anticheat System too. but mine will works with Sockets and the Lualibrary Headers + some Lua Files, for detecting s0beit librarys and triggering the Lua-Event at the Luafile. Server - Client Model is already finished, but my fucking C++ Compiler cant find some Linkers + Preprocessor after chaning from Ubuntu to Vista -> cant continue my Project. Hope yours will be released soon
  9. Of course you dont see.. Resource is WIP and classes will be released in release version. The datas will be stored to mta accounts. Mhm..maybe you should swap to SQL or MySQL. It´s working much faster than storing everything in a Stylesheet and the Mta Server wont lose CPU for storing/requesting data indeed Good luck mate
  10. sorry but i cant answer realistic on non-realist questions. Im just a Kid, Sorry
  11. No... Ask your neighbours, maybe they got one.
  12. Search on the Wiki, theres 2 Pages for Mta-Race Scripters setElementData(player,"Race rank", getPlayerRank(player))
  13. I think its easy for beginners but i can´t see any Classes Where you want to store your Data ? Into a SQL Database, MySQL, Stylesheets (xml), Accountstylesheet (Account.xml) or in .txt´s ?
  14. Wow 300+ Maps How much time do you spend for them ? 2,1 MB isn´t a hell of a lot, sure you packed 300 Archives ? Ps: Great work
  15. Mhm...what do you mean with black Map ? You need to add the Map into you Mtaserverconfig too. or you can easily start it with "start " in the Console.
  16. You create something with Mta ? Do you mean the Mapeditor or smth. ? The Camera Bug is a known Problem, idk if the Mta Team can solve it, cause it has to do with your San Andreas.
  17. You mean linking the Mta Account (https://forum.multitheftauto.com) with the Mta Beta Account ? I like the Idea, but i cant see any reason for it Maybe for sharing the Communitiegroups / adding them into the Account. But i think this can wait.
  18. yep i would do that. The point is many Player/Administrators uses the same passwords for the Board / Forum / Email Account and Mta Server. It´s just for preventing problems And you can also use sha1 + sha2 Hash´s + other Hash´s = unbreakable.
  19. md5 is nice but if you use a SQL Database for example phpmyAdmin MySQL you should swap to sha1 and sha2. It´s even more secure than md5 hash, im using it myself to save our Accounts. .
  20. Thanks now i finally found a place where i can post my 'Jason goes dirty' pics (just jooking ) Got a lot of Mta Pictures here.
  21. I love the new Front Page. It looks really professional with the Javascript Hover Effects. Is it possible to Upload Pictures into the Galary ?
  22. Dude... 1. Learn the difference between Clientside/Serverside Scripts first, cause everybody can see that this isnt the full Script. You are trying to trigger a Serverside Function, but you haven´t post it, because its not yours = dont post it. Here mine hope it works, if not post the Issue afkKeys = {"arrow_l", "arrow_u", "arrow_r", "arrow_d" } afkTimer = nil afkTime = 10000 -- 10 Seconds function pushKey( key, state ) if ( state == "down" ) then if isTimer(afkTimer) then killTimer(afkTimer) afkTimer = setTimer(function() triggerServerEvent ( "onAfkEvent", getLocalPlayer(), afkTime) end, afkTime, 1) else afkTimer = setTimer(function() triggerServerEvent ( "onAfkEvent", getLocalPlayer(), afkTime) end, afkTime, 1) end end end addEventHandler ( "onClientPlayerJoin", getRootElement(), function AfkBinds() setElementData(getLocalPlayer(), "idletime", 0) for key,keyNames in pairs(afkKeys) do bindKey(keynames, "both", pushKey) end end) Serverside MaxAfkTime = 60 -- 1 Minute AfkKickReason = "Afk for "..MaxAfkTime .." Seconds" function onAfkEvent(afkTime) if client then setElementData(client , "idletime", tonumber(getElementData(client , "idletime")+tonumber(afkTime))) afkTime = AfkTime/1000 outputChatBox (getPlayerName(client).." is "..afkTime .." Seconds Afk, fucking Dumbhead >:]", getRootElement()) if afkTime > MaxAfkTime then setElementData(client, "idletime", 0) kickPlayer ( client, "Afk-Script", AfkKickReason ) end end end addEvent( "onAfkEvent", true ) addEventHandler( "onAfkEvent", getRootElement(), onAfkEvent) @Inovationgaming you can find the Key Names here https://wiki.multitheftauto.com/wiki/Key_names
  23. No we wont be happy about Stealer cause it suckZ. It isnt your Script, theres still missing the Serverside one Idiot. So stop posting Clientside Downloaded Scripts eAi knows what he´s talking about .
  24. door = createObject ( Objectid, X, Y, Z, rX, rY, rZ ) Work with the Object Element if it dont work with getElementById.
  25. function payDay(money) local players = getElementsByType ( "player" ) for theKey,thePlayer in ipairs(players) do givePlayerMoney(thePlayer, tonumber(money)) end end Simply use a Timer with the payDay Function.
×
×
  • Create New...