Jump to content

Jumba'

Members
  • Posts

    254
  • Joined

  • Last visited

Everything posted by Jumba'

  1. I can't believe how I missed that part Here's the two MySQL modules by the way: https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL https://wiki.multitheftauto.com/wiki/Modules/MySQL I personally recommend MTA-MySQL.
  2. Something more direct please? Thanks for the help. http://lmgtfy.com/?q=lua+for+loop But seriously, just look around in google, search for lua for loop examples, etc.
  3. You need to use getTeamName, getPlayerTeam returns the team element. https://wiki.multitheftauto.com/wiki/GetTeamName so it would be local job = getTeamName ( getPlayerTeam ( source ) )
  4. use xmlSaveFile afterwards.. It is created, but it's not written to the disk yet, it's created in the server memory.
  5. I'm not very good in PAWN but if I'm correct you're defining the table size with "RegistroPaso1[MAX_PLAYERS] = 0". In lua that's not neccesary, you just create a table using "RegistroPaso1 = { }", the size does not matter, it dynamically adapts itself as more values are added. Also, in MTA players don't have id's, you'll have to script that, they do all have a unique key, each player is an element. So in lua RegistroPaso1[playerid] = 0; would be RegistroPaso1[element] = { } Here's an example. RegistroPaso1 = { } function blaBla( source, command ) RegistroPaso1[source] = { } end addCommandHandler ( "bla", blaBla ) I recommend reading this: http://nixstaller.berlios.de/manual/0.2/nixstaller_9.html
  6. https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin If you have ever read wiki, you'd know. I've already read about the function, and it says that it gets triggered when a player joins the server and that the source of this event is the player who joined the server. This event is triggered when a player joins a server. It is triggered for all players other than the local player. I know a period means full stop, but you should continue reading if there's more behind it
  7. But I want to show it for the player who joins. .. onClientResourceStart gets called when a player joined and has finished downloading the resource, that IS what you need to use, not onClientPlayerJoin.
  8. Probably most of the code can be simplified. I worked with them long time ago when they weren't Valhalla but MTA:RP. I left the team since I realized that RP is not interesting in any way. "Follow the rules or I'll ban you", "Change your name or I'll ban you", "Don't kill other people or I'll ban you" thanks for this kind of server but I want to enjoy playing. Read nice long story to answer 10s of questions, if you won't answer enough questions correctly, you can't play. I didn't say anything about Valhalla itself, I don't play their anymore either due to various reasons, I'm just reacting to the "the script will kick valhalla's ass" comment. While it's always possible to have a better admin team, etc, valhalla's script is really really big and advanced, and 50 euros isn't nearly enough compensation to recreate a script that will be able to compete against Valhalla's. and varez, I think the point of the tutorial is to give you an idea about RP so when you fill the app on the website you have an idea what metagaming/powergaming etc is. Even so, we still had tons of people who couldn't even begin to explain those terms. Most RP servers have applications such as these, look at ls-rp on sa-mp, it's the same thing, it's the only method to keep the RP at an acceptable level.
  9. I'm just going to point out that Valhalla's script is 80k lines long last time I asked, which was @ 4 months ago. If you really expect someone to write a script that long for 50 euro's then you're seriously mistaken
  10. Yup, every time it goes through tempVeh will get the element data of the newly created vehicle.
  11. The C# SDK uses HTTP POST requests or something like that..
  12. You need to export the function with type="http" in the meta.xml file.
  13. Jumba'

    Hacking

    What is client actually, that's the getLocalPlayer() function or what?
  14. Jumba'

    MTA and SAMP

    Where's the giant war?
  15. Jumba'

    MTA and SAMP

    Unless ofcourse there could be a way to properly run sa-mp gamemodes on MTA, but that'd be awfully hard to get working 100%
  16. I've tried every possible thing I could imagine to retrieve the data from JSON objects, this is my thread. https://forum.multitheftauto.com/viewtop ... 4&p=301555 I never figured it out though, so I just decided to send the info to the MySQL databases via php then retrieve them with the server's mysql connection. Takes more time, but it was the only way I could do it.
  17. You need to set the proper ACL permissions. I think it has the be Super Moderator or higher, not sure though
  18. Wouldn't it be easier to use createBlipAttachedTo?
  19. Jumba'

    MTA and SAMP

    http://en.wikipedia.org/wiki/Non-profit_organization Read the first sentence. Do you really think it costs 1000+ euros per month to run SA-MP? Don't be so ignorant.
  20. Well you can, but it's annoying as hell
  21. Okay so I've made an admin script, now my idea is to instead of having to add every admin into the ACL I just set admins via the script, so a player can be level 1, 2, 3 etc. etc. But the problem is that a player that's not logged in/in the correct ACL group won't have access to the admin commands. I thought about adding attaching the "admin" acl to the everyone group. (removing some functions that they won't be needing ofcourse). But my concern is, even if the script checks at all times if the player is of the correct level, will there be a way they could abuse of this and get admin rights? Or will it be safe? I hope my question was kinda clear
  22. Okay so I've made an admin script, now my idea is to instead of having to add every admin into the ACL I just set admins via the script, so a player can be level 1, 2, 3 etc. etc. But the problem is that a player that's not logged in/in the correct ACL group won't have access to the admin commands. I thought about adding attaching the "admin" acl to the everyone group. (removing some functions that they won't be needing ofcourse). But my concern is, even if the script checks at all times if the player is of the correct level, will there be a way they could abuse of this and get admin rights? Or will it be safe? I hope my question was kinda clear
  23. I was just wondering if there were any scripts, or if anyone could give me an idea on how to make a ped follow a precise path in a vehicle. I tried using "setPedControlState" but that's not really precise as the weather changes the handling, so the path wouldnt be an exact replica. I need it for a film I'm making and I needed some peds driving pre-set routes.
  24. I was just wondering if there were any scripts, or if anyone could give me an idea on how to make a ped follow a precise path in a vehicle. I tried using "setPedControlState" but that's not really precise as the weather changes the handling, so the path wouldnt be an exact replica. I need it for a film I'm making and I needed some peds driving pre-set routes.
×
×
  • Create New...