Jump to content

Callum

MTA Contributors
  • Posts

    865
  • Joined

  • Last visited

Everything posted by Callum

  1. Callum

    I need help

    Maybe this would be of some use to you?
  2. Try adding inside of and after the name value (in meta.xml).
  3. You know you should actually try the script and debug it before asking for help here.
  4. I'm pretty sure every vehicle has a radio, even BMX's do.
  5. This is the wrong section of the forums to post this type of question.
  6. I thought if the oldNick is the same as the newNick onPlayerChangeNick won't be triggered because the client just gets an error like "Your nick is already ".
  7. Or the script and/or meta's corrupt so it refuses to load the resource.
  8. These functions are deprecated. Use getElementModel and setElementModel instead.
  9. Try your name change then cancelEvent(), I've just figured you're cancelling the name change, then you're changing the name, which would trigger another onPlayerChangeNick, and that will cause an infinate loop.
  10. It definately works (maybe the other way around (script then cancelEvent())), because I used that in my "HEX_Removal" script in community. See that for a working example. Otherwise, I don't see how it won't work, unless you're trying to do something more than you're telling us.
  11. EDIT: Damn Jockie, beat me to it.
  12. Do a cancelEvent(), then do your name change, like the following: function chanceNick () cancelEvent() setPlayerName ( source, "Bob" ) end addEventHandler ( "onPlayerChangeNick", getRootElement(), changeNick )
  13. Is there anybody else in your household that plays MTA on the same IP as you (on your WAN)? I think their is an issue where multiple people have the same serial, possibly that other person is getting serial banned from the servers. That's all I can suggest.
  14. I don't think it's faster, nor better (in terms of graphics, etc). But yea, it's the best option for development.
  15. It's a game-server at ServerFFS (linux server) and all the ports are open.
  16. Yea, it doesn't happen all that often but it's still a problem I want to fix.
  17. MTA:MA was built for MTA =< 0.5, not for MTA SA.
  18. Callum

    LOW FPS loL*

    Each server had a fps limit configured in mtaserver.config. Try locally running a server, start runcode and type in (client) console "run setFPSLimit(false)". See if that speeds it up any more. If so, then the low FPS is down to the server.
  19. It appears the problem is not with the music file, but with the script. Things like too little/many "(" and ")" or "," in the wrong place can cause a script to fail. But it should ouput that error on debugscript. I can't actually find any errors in your script. And line 8 is useless, if you're cancelling the event they won't switch the station in the first place. Maybe you should add that to an onVehicleEnter function, because when entering a vehicle for the first time by default a radio station comes on. By the way, if it's commercial music it's illegal to give all the clients a copy of it.
  20. Callum

    Syntax

    Try reading this. It should teach you all the basics about how to make scripts, and then read this scripting tutorial. Hope the links helped.
  21. Callum

    Hacking

    Yes, client is the client-side version of source.
  22. I re-opened the Java console and the echo bot started spamming messages that were recorded when the IRC script was first launched. How to fix that?
×
×
  • Create New...