Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. accountName is never assigned. Try this: function triggerToggle ( player,source ) if ( player and not isGuestAccount ( getPlayerAccount ( player ) ) ) then if isObjectInACLGroup( "user.".. tostring ( getAccountName ( getPlayerAccount ( player ) ) ), aclGetGroup( "Admin") ) then --- = line 344 triggerClientEvent ( player, "panelToggle", player ) end end end addCommandHandler("subadmin", triggerToggle, false, true )
  2. https://wiki.multitheftauto.com/wiki/FetchRemote Error 1006: Destination IP not allowed. What do you mean? It's possible, the scripting in this resource isn't very efficient.
  3. xXMADEXx

    Gate Help

    Change the rotation...
  4. You need to put an if statement in the code, to check if the player who hit the marker is the localPlayer. onClientMarkerHit triggers whenever any player hits the marker.
  5. Every scripter that I know charges by the resouce, not by the hour. However, I don't think any will be a "full-time server scripter..."
  6. Thanks. We gave it out because we both quit MTA, so it was completely pointless to keep it for our own if we couldn't use it.
  7. Lol, you guys are welcome. I'm happy to help.
  8. No, if someone finds a bug, they can patch it and send me it, so that i can update the GitHub code.
  9. My bad, will be fixed right now!
  10. Hello everyone, Nerd Gaming is a gamemode that I started making over a year ago with one of my good buddies Chronic. Soon after the launch in August, neither one of us had time to manage the server, due to school and work. A month after the launch, we decided to close it, so the gamemode became useless for me to just have for myself, because I wasn't going to use it. A couple months had passed, so I decided that I would release the gamemode. I released the gamemode, with the original version of 1.0, which was very unstable and full of bugs. A couple months after I released it to GitHub and the MTA community, I started to support frequent updates for the gamemode, which brings us today! I still update this gamemode, and if you have any problems with it, please send me a private message here, or add me on Skype (Madex-MTA) and discuss the issue with me! Information Gamemode type: RPG/CnR Appox. file size: 23MB Version: 1.1.4 GitHub: https://github.com/braydondavis/Nerd-Gaming-Public (Click "Download ZIP" towards the mid-right) Latest stable builds GitHub: https://github.com/braydondavis/Nerd-Ga ... ree/master Download: https://github.com/braydondavis/Nerd-Ga ... master.zip Latest development builds GitHub: https://github.com/braydondavis/Nerd-Ga ... evelopment Download: https://github.com/braydondavis/Nerd-Ga ... opment.zip Installation Video Enjoy.
  11. Could you please explain why my tutorial is a terrible place to start? Have you even read it? Actually, you yourself said it was good. rked
  12. My tutorial is a good place to start. viewtopic.php?f=148&t=75501
  13. Update - Added the exports section, the tutorial is now complete! Exports
  14. Nice tutorial, really helps introduce people to what scripting is. My tutorial has it. viewtopic.php?f=148&t=75501
  15. xXMADEXx

    tag

    You can use the event onPlayerChat, and inside that event you need to use cancelEvent. The code would be something like this: addEventHandler ( "onPlayerChat", root, function ( msg, type ) if ( type == 2 ) then cancelEvent ( ); else return false; end local name = getPlayerName ( source ):gsub ( "#%x%x%x%x%x%x", "" ); outputChatBox ( "(Group) "..name..": "..msg, root, 255, 255, 255 ); end )
  16. xXMADEXx

    help dx

    Use the functions: onClientPreRender -- Event dxDrawImage getScreenFromWorldPosition getElementPosition
  17. xXMADEXx

    Blips

    You could re-write the script so it uses dxDrawRectangle rather than guiCreateStaticImage, and this would give you the ability to set the rectangle color. This however, would probably be a quite a bit of work. The default freeroam system just does as you said, loads image, and whoever wrote the script didn't want to use dxDrawRectangle (Maybe because its a bit of work, but MTA didn't have dx function supported then, I'm not sure the actual reason) so he just made the images.
  18. xXMADEXx

    GUI Label

    Just look at the wiki for the function, it has examples. https://wiki.multitheftauto.com/wiki/TriggerClientEvent
  19. That's requesting. It's requesting a scripter. You can hire Castillo/SolidSnake14 at http://mtamarket.com/.
  20. You got the syntax wrong for inserting. dbExec(adminDB, "INSERT INTO adminSaver VALUES(?,?,?,?,?,?,?,?)", acc, x, y, z, skin, dim, inte, tostring(t)) It should be something like this: dbExec(adminDB, "INSERT INTO adminSaver (acc, x, y, z, skin, dim, inte, team) VALUES(?,?,?,?,?,?,?,?)", acc, x, y, z, skin, dim, inte, tostring(t)) (I don't know what your column names are so you'll probably need to rename them.) And also make sure that adminDB is defined.
  21. Arnold told me to increase the performance by that and I did it. Anyways thanks to you too. He was wrong then, it is better performance to get the account outside the loop. addCommandHandler("duty", function(p) local acc = getPlayerAccount(p) for k,v in ipairs(players) do -- loop code end -- rest of your code end )
  22. Try using this local month_ = month [ time.month - 1 ]
  23. Line 131 isn't an essential line, you can just comment it out with "--".
×
×
  • Create New...