
Gamesnert
MTA Contributors-
Posts
2,035 -
Joined
-
Last visited
Everything posted by Gamesnert
-
Are you on a wireless router? If so, I blame it. And do you have any problems with any other game?
-
Oh I guess it's yet another April Fools Joke. ... Except that it isn't in April. EDIT: Oh right, almost forgot to show a link to the "leaked" version of MTA Orange... Orange
-
Ok, and is this just in 1 server or all of em?
-
function teamgrove(startedResource) if getThisResource() == startedResource then triggerServerEvent("teamgrove", getRootElement(), p) end end addEventHandler("onClientResourceStart", getRootElement(), teamgrove) May I ask you, did you just copy this from the function above? As it doesn't work this way. Basically, you're telling the server you want to join "Grove" team on resource start. And also when you click the button. Then something else. What's the "p" in triggerServerEvent? It doesn't appear to be anything, so setPlayerTeam will return a warning. To fix both of these issues, let's fix stuff up a little: function teamgrove() -- We don't want it started on resource start. Basically all of importance that changed triggerServerEvent("teamgrove", getRootElement()) end function joingrove ( ) -- Changed the function a little to not even require the "source" or "p" argument. setPlayerTeam ( client, teamgrove ) triggerClientEvent("teamgrove", getRootElement(),client) -- Is this even required? I don't see any reference to this back in your code end addEvent("teamgrove", true) addEventHandler("teamgrove", getRootElement(), joingrove) I guess that should fix it up a little.
-
MTA can't attach sounds and some other elements so far if I remember correctly. Though client-side you can use onClientRender or onClientPreRender to move the sound towards the car every frame. And, with that, hear it near the car. Might require some thinking, but shouldn't be too hard.
-
Perhaps it's an idea not to double-post. Sometimes it just takes some time. Leave alone triple. Anyhow, make sure you're logged in and actually are an admin.
-
setElementInterior(getLocalPlayer(), 3) Oh by the way, setElementInterior doesn't have x,y,z arguments.
-
addCommandHandler + setElementPosition
-
Overall I prefer client-side scripting. The things you can do client-side are just that much more fun to do, you can do stuff with vehicle gravity, cheats, DX, GUI, model replacement etc. Although for good scripts you usually need at least 1 server-side script, like Dragon already said. Most things can be accomplished client-side, and can even be synched without the need of server-side scripts. (for instance getElementPosition on yourself or on your own vehicle is synched, as is for instance setElementData)
-
You know, that's fine and all, but that's why this was displayed in the description: If you would have looked there, you would have seen I actually already implemented that there. Besides that, I guess he would clearly know how to replace an image inside a folder. Not really the need to upload it in a separate location.
-
Go to your server resources folder, open admin.zip, open the "conf" folder. Then open "settings.xml" and remove this:
-
onClientPlayerChangeNick + removeEventHandler = what you want
-
if getElementID(elemetZ) == 47 then Should be if getBlipIcon(elemetZ) == 47 then
-
this sentence i dont understand, who did you mean as dev.? mta developers or normal mta mod scripters? Well, dev is short for developer. So I mean MTA developer.
-
Deathmatch server manual (Why does it actually still say "Deathmatch"... 1.0 isn't called "Deathmatch" anymore )
-
Radar images don't have an ID, so you can't replace them. Unless there's a dev who makes this possible, of course.
-
About the first one, it seems to be possible to craft minimaps with radar areas. No real ability to use images. There does seem to be a resource for it, don't know its name or where to get it though. I do know about a big map (F11) replacement resource called Maximap, which literally replaces the entire F11 map. I'm not sure about the GIFs though. It might be possible with dxDrawImage, but I'm not sure.
-
Basically because they aren't even attached and you're trying to remove attached blips. What exactly do you want to do with those blips?
-
https://wiki.multitheftauto.com/index.php?title=U ... #Downloads This one seems to work.
-
Here again, you need to script. guiCreateStaticImage
-
Playercolors seems to use nametag colors to color the chat. However, if a new map is started, this is being reset by mapmanager. Therefore, you need a slight change in the code. In playercolors.lua (open it with notepad) replace: addEventHandler ( "onResourceStart", g_ResourceRoot, function() for i,player in ipairs(getElementsByType"player") do processPlayer ( player ) end end ) With: function applyPlayerColors() for i,player in ipairs(getElementsByType"player") do processPlayer ( player ) end end addEventHandler ( "onResourceStart", g_ResourceRoot,applyPlayerColors ) addEventHandler ( "onGamemodeMapStart", g_Root,applyPlayerColors ) This is pretty much the easiest solution. However, the colors will still randomly change after a map change. There are ways around this, but I guess this isn't such a serious issue anyways. (and it probably is a relief for people who get pink as random color)
-
Does GTA, MTA and not even to mention SQL even support a 12 digit number? I know from C++, that if you have a signed number with only 1 byte (dunno if actually possible, never came beyond "Hello world!") and you'd reach its limit (127) it'd go from the lowest number possible (-128) on again if you increment. At least, if I remember correctly...
-
It means that the ACL isn't configured properly. Which I find relatively strange, because it's configured fine at the time of install afaik. Did you perhaps copy your ACL.xml from a DP2 server? In that case, someone can simply send you the required ACL lines.
-
Can you connect properly to other servers? And what about other people trying to connect to your VPS?
-
Try to go to Settings -> Controls. At Joypad options, make sure you have "Standard controls" checked.