-
Posts
865 -
Joined
-
Last visited
Everything posted by Callum
-
Maybe this would be of some use to you?
-
Try adding inside of and after the name value (in meta.xml).
-
You know you should actually try the script and debug it before asking for help here.
-
I'm pretty sure every vehicle has a radio, even BMX's do.
-
This is the wrong section of the forums to post this type of question.
-
change nick on nick change and dont get into infinite loop
Callum replied to dzek (varez)'s topic in Scripting
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 ". -
Or the script and/or meta's corrupt so it refuses to load the resource.
-
These functions are deprecated. Use getElementModel and setElementModel instead.
-
change nick on nick change and dont get into infinite loop
Callum replied to dzek (varez)'s topic in Scripting
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. -
change nick on nick change and dont get into infinite loop
Callum replied to dzek (varez)'s topic in Scripting
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. -
EDIT: Damn Jockie, beat me to it.
-
change nick on nick change and dont get into infinite loop
Callum replied to dzek (varez)'s topic in Scripting
Do a cancelEvent(), then do your name change, like the following: function chanceNick () cancelEvent() setPlayerName ( source, "Bob" ) end addEventHandler ( "onPlayerChangeNick", getRootElement(), changeNick ) -
setPlayerNametagShowing
-
Most likely from here.
-
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.
-
I don't think it's faster, nor better (in terms of graphics, etc). But yea, it's the best option for development.
-
Vice City FTW.
-
It's a game-server at ServerFFS (linux server) and all the ports are open.
-
Yea, it doesn't happen all that often but it's still a problem I want to fix.
-
MTA:MA was built for MTA =< 0.5, not for MTA SA.
-
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.
-
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.
-
Yes, client is the client-side version of source.
-
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?
