Gamesnert
MTA Contributors-
Posts
2,035 -
Joined
-
Last visited
Everything posted by Gamesnert
-
local resources = getResources() for i, resource in ipairs(resources) do local name=getResourceName(resource) if name=="scores" then restartResource(resource) end end This should work
-
Setting player health on a table? Well... Umm... You better watch the getElementsByType page on the wiki. More specifically, the example. As it's almost pre-done for you. (Hint: There's a hint in the last line. Cookie if you find it )
-
I have the entire resource, got it on IRC once. You can have it. Seems to work fine. Also includes a small script to (easily) spawn them transformers, for some extra fun.
-
He means the resources SVN resource called "missiontimer", I think.
-
That's Neonblack And the API topic is HERE.
-
Your ACL isn't configured for race correctly. You can temporarily add <object name="resource.race" /> to , what should work.
-
[TUT] Install new MTA 1.0 easily! (w pics Win7/Vista works)
Gamesnert replied to CodeMaster's topic in General discussion
It does. Joypad support is added, and it works fine. I had a little trouble with it, but well I guess 10 year old joysticks aren't really compatible... -
You should use 22004, since that's your serverport. 22005 appears to be your HTTP port, since it's TCP.
-
If it doesn't recognize Window, then you haven't installed GUI classes script correctly. 1. Get one of the 2 links linking to the GUI classes community page 2. Download it 3. Open the zip and extract "classes" folder into your resource 4. Add these lines to the meta.xml for your resource: <script src="classes/GUICollection.lua" type="client" /> <script src="classes/button_class.lua" type="client" /> <script src="classes/checkbox_class.lua" type="client" /> <script src="classes/gridlist_class.lua" type="client" /> <script src="classes/label_class.lua" type="client" /> <script src="classes/memo_class.lua" type="client" /> <script src="classes/progressbar_class.lua" type="client" /> <script src="classes/radiobutton_class.lua" type="client" /> <script src="classes/scrollbar_class.lua" type="client" /> <script src="classes/staticimage_class.lua" type="client" /> <script src="classes/textbox_class.lua" type="client" /> <script src="classes/tabpanel_class.lua" type="client" /> <script src="classes/tab_class.lua" type="client" /> <script src="classes/window_class.lua" type="client" /> 5. Save the meta.xml, restart the resource on the server or start the server. It should work correctly now.
-
wnd = Create:Window( 10, 250, 200, 100, "Spawn window" ); Should be... wnd = Window:Create( 10, 250, 200, 100, "Spawn window" ); ... according to the documentation on the GUI Classes wiki page.
-
Something like this? https://community.multitheftauto.com/index.php?p= ... ils&id=265
-
But then you wouldn't be able to enter the vehicle again, as they're not jack-able... lol
-
The skin ID. If you want to replace skin 105, use 105. Make sure you're on 1.0 though, as I doubt this'll work in DP2.3. Also, replacing the skin you currently have prevents the new TXD from working for as far as I know.
-
[TUT] Install new MTA 1.0 easily! (w pics Win7/Vista works)
Gamesnert replied to CodeMaster's topic in General discussion
Pictures and a list of advantages. Also, the forums are checked out much more than a deserted webpage like that. -
Mind giving us the following information? - HTTP port (as defined in mtaserver.conf) - Server port (also defined in mtaserver.conf) - Opened ports - Exact problem, don't you see it in the server list or ..? - Any other information that might be of use
-
<object id="turtle" .../> <!-- Object element with ID "turtle" --> <turtle id="object" .../> <!-- Turtle element with ID "object" --> Setting it's ID to turtle doesn't make it a turtle element.
-
Question 1: Go to the race resource, open meta.xml and edit "autopimp" setting. (set it to "true") Question 2: Wasn't that already added? If not, it would require some scripting to implement it. So I hope you're familiar with scripting..?
-
http://development.mtasa.com/index.php? ... terior_IDs
-
Why i cant join to a group in MTA SA community?
Gamesnert replied to lexagav[RUS]'s question in Client
Devtools is something I have been working on a while ago. If I choose to re-continue the project, fix stuff up, and add more things, then I might release it. -
-
That example appears to work with gamemodes. (i.e. "gamemode stealth sth-sewers") Since I guess you're just using a normal resource, try replacing "onGamemodeMapStart" with "onResourceStart". That should, more or less, fix your problem.
-
As I said, there doesn't appear to be any sort of vehicle-in-water detection in DP2, therefore, not possible in DP2 yet. For the car flip you can use something like this: ... local veh=getPlayerOccupiedVehicle(carflip) local x,y,z=getElementPosition(veh) local rx,ry,rz=getVehicleRotation(veh) setVehicleRotation(veh,0,0,rz) setElementPosition(veh,x,y,z+5) ...
-
1. For as far as I know there's no real way to check if a vehicle is in the water in DP2. Therefore, you probably can't do this yet. 2. Sure, that's possible. Some pages that might interest you: - bindKey - fixVehicle - setVehicleRotation 3. Normally, most garages are closed. You can't do anything with them in DP2. However, in 1.0 these can be operated by script, so you can make something like a "Pay 'n Spray script". As some parts require a newer version, you might need to wait. Or, you can try a nightly build. (see it as a beta for 1.0) But do remember that the player count is extremely low on these builds, as they're not really intended to be played on. So it's recommended to install it in an other directory than your DP2 version.
-
Are you sure you downloaded the resources? (LINK) And in the right folder? (\server\mods\deathmatch\resources)
