Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. Your code is a total mess and should not be made the way it is. You might want to make any decent scripted thing for easier areas adding and non-need of millions of elseif for each radar area/millions events for each radar area.
  2. I'm laughing... so... much... Learn and make by yourself, even if someone had SAES:RPG scripts no one would give you.
  3. That is the normal ACL which uses the acl.xml. But I want to use the MySQL database. Then what you're asking makes no sense because you must make your own MySQL-based system which means you must make your own functions to do what you want.
  4. Can't you really figure out? Use your brain and read again what I said.
  5. You're using server-side events on client-side code and you're declaring tables that aren't actually being used.
  6. Anderl

    A way?

    This problem from ACL You will find this in ACL "command.blow" access="false"> change it to "command.blow" access="true"> That's for admin panel blow command, it has nothing to do with blow function.
  7. Anderl

    Help

    You're welcome
  8. Anderl

    Help

    setTimer( function() for key,value in next, getElementsByType 'player' do if (isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(value)), aclGetGroup('Admin'))) then givePlayerMoney(value, 1) end end end, 2300, 0 )
  9. There's nothing in that page.
  10. would be cool if you guys added something like that, i can't play on most servers for longer than 10 minutes without fps drops forcing me to restart For me, the more time I keep on the server, the faster things load and run and I'm on a shit laptop.
  11. Anderl

    A way?

    Your code makes totally no sense. Is it that hard to copy a function to your code?
  12. Anderl

    A way?

    getPlayerFromNamePart is a function made by users, not a built-in MTA:SA function. https://wiki.multitheftauto.com/wiki/Get ... omNamePart
  13. Everything is explained in the wiki, good luck And... you're welcome
  14. Anderl

    A way?

    They should work, which one did you try? It will never work because you used getPlayerFromName which will only work if you write the full name ( with color codes ).
  15. I don't really know much about C++ and how memory addresses work ( never studied C++ "hard", I'll start soon ) but here's the memory address & some info that I got from GTAModding: 0xBA6820 - [byte] Resolution values: 11 = 640x480 12 = 800x400 13 = 800x600 15 = 1024x768 If you know C++ and how to manage with memory addresses, then it should be easy for you to get resolution with this.
  16. Anderl

    A way?

    You may want to use getPlayerFromNamePart from Wiki's Useful Functions.
  17. https://wiki.multitheftauto.com/wiki/Client_Scrip ... _functions https://wiki.multitheftauto.com/wiki/Server_Scrip ... _functions
  18. Create in XML, it's easier. Do something in this style: <jobs> <job name='Trucker'> <location> <from name='Somewhere in Los Santos' posX='2222' posY='2222' posZ='2222'/> <delivery name='Somewhere in Las Venturas' posX='5555' posY='5555' posZ='5555'/> </location> <location> <from name='Somewhere in San Fierro' posX='3333' posY='3333' posZ='3333'/> <delivery name='Somewhere in Los Santos' posX='1111' posY='1111' posZ='1111'/> </location> </job> </jobs>
  19. Server-side: addEvent('selector:query', true) addEventHandler('selector:query', root, function(szUser) --outputChatBox(mValue) local pQuery = mysql:query_fetch_assoc('SELECT id, admin, adminjail__time, banned_reason FROM `accounts` WHERE username = "'..szUser..'"') pQuery = mysql:fetch_assoc(pQuery) -- triggerClientEvent(source, 'selector:retrieve', source, pQuery, szUser) end ) Client-side: addEvent('selector:retrieve', true) addEventHandler('selector:retrieve', root, function(pData, szUser) guiSetText(IDEd, pData.id) guiSetText(UsrN, szUser) guiSetText(ALvl, pData.admin) guiSetText(Banned, pData['banned_reason']) end ) Just trigger server-side event "selector:query" with username as string when you need to get details. P.S. Not tested.
  20. Anderl

    Skins

    You must use a DFF modeller ( e.g. ZModeler, 3DS Max I guess it exports to DFF too ) to edit model and TXD Workshop or any TXD editor to edit textures.
  21. You don't need to add indexes if they're numbers and you can just use "next, table" in for-loop because it works for number and string indexed tables. But I could not understand your problem, can you explain better?
  22. Anderl

    Help please

    addEventHandler('onClientRender', root, function() --if (not isPedJoin(localPlayer)) then return end || I can't really understand what you want with this and it makes no sense unless you say what 'isPedJoin' means --local nKills = getElementKills(getPedJoin(localPlayer)) || this makes no sense too local nKills = getElementKills(localPlayer) -- is 'getElementKills' function defined? --local nDeath = getElementDeaths(getPedJoin(localPlayer)) || this makes no sense too local nDeath = getElementDeaths(localPlayer) -- is 'getElementDeaths' defined? -- local fScreenX, fScreenY = guiGetScreenSize() local nWndWidth, nWndHeight = 300, 170 local fLeft, fTop = fScreenX/1.15 - nWndWidth/9.8, fScreenY/1.15 - nWndHeight/20 -- local szKills = string.format('Kills: %s', nKills) local szDeath = string.format('Deaths: %s', nDeath) dxDrawText(szKills, fLeft, fTop, fScreenX, fScreenY, tocolor(200, 200, 200, 255), 1.5, "arial") dxDrawText(szDeath, fLeft, fTop-25, fScreenX, fScreenY, tocolor(200, 200, 200, 255), 1.5, "arial") end )
  23. https://wiki.multitheftauto.com/wiki/Cli ... _functions https://wiki.multitheftauto.com/wiki/Ser ... _functions
  24. addCommandHandler('cry', function(p) outputChatBox(string.format('%s %s', getPlayerName(p), '#ff0000cries like a baby!'), root, 255, 255, 255, true) end ) Just for you to know what I changed to make everybody see it, I changed source to root in outputChatBox.
×
×
  • Create New...