-
Posts
1,031 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Bonsai
-
Hey Guys, I just have a simple Question. Is there something like "OnPlayerwin" or "OnMapEnd"? That means, a function that starts, when a Player won e.g. on Crosses. Hope someone can help me. Bye
-
I'm confused that I seem to be the only one which that problem. Because its actually just the normal MTA Version, which is availabe here. I formatted my PC, Now I'll try again.
-
Every Player on the server gets timed out message, so I think its the Server crashing. Its a professional hosted Server. And as far as I know I am the only person, who got such a problem with Admin status. I have really know Idea what the problem is. I also just heard, that all MTA Servers, which are also hosted on that Server, are crashing too. PS: I'm running 1.0.4.
-
Hi Guys, I've got a very strange problem. Every time, when I am Admin on a server, it starts to lag and crash after a few minutes. That means, every Player, so do I, time out. Without Level, that doesn't happen. So, apparently, my MTA Client does some weird things when it got Admin access. All I can say is, that the only things I did, while I was Admin, were enable GM and put Auto Login by Serial on in Admin Panel. Maybe someone knows, why that is happening, or maybe someone knows, whats actually happening with the server. Because I have no idea. It looks like a DDOS attack, but it isn't. Maybe someone got this problem too, and knows a solution to fix it. Bonsai
-
N1 Dude! Now it works perfect! Thanks!
-
Alright, I tested yours, but nothing happened. The Weapon is still useable.
-
Yeah, I did that because there is no "OnClientVehicleChange". And I want the function to check that always, and not just at map start. EDIT: Whats -1?
-
Hey Guys, I tried to disable the secondary Weapon in Hunter {Minigun), but it doesnt work. It shall disable secondary Weapon, when the Player hits a Hunter Pickup. I got this code from wiki, but its not made for Race Mode. function disableFireForHunter ( theVehicle, seat ) if ( getElementModel ( theVehicle ) == 425 ) then -- if they entered a hunter toggleControl ( "vehicle_secondary_fire", false ) -- disable their fire key else -- if they entered another vehicle toggleControl ( "vehicle_secondary_fire", true ) -- enable their fire key end end addEventHandler ( "onClientPlayerEnterVehicle", getLocalPlayer(), disableFireForHunter) I changed it so that it should actually work, when the Player hits Vehicle Change Pickup. function disableFireForHunter ( theVehicle, seat ) if ( getElementModel ( theVehicle ) == 425 ) then -- if they entered a hunter toggleControl ( "vehicle_secondary_fire", false ) -- disable their fire key else -- if they entered another vehicle toggleControl ( "vehicle_secondary_fire", true ) -- enable their fire key end setTimer(disableFireForHunter, 1000, 0) end addEventHandler ( "onClientResourceStart", getLocalPlayer(), disableFireForHunter ) Maybe someone knows a solution for this problem.
-
Hey, I installed that, and I dont get that Error anymore. But the Map still doesnt load completly. I get the "Map loaded" text, but its still cut at the same place where it was with Limit. Edit: After that, this appears in Console: [13:58:28] WARNING: edf\edf.lua:21: Bad argument @ 'getMarkerType' [13:58:28] ERROR: editor_main\server\saveloadtest_server.lua:112: bad argument #1 to 'status' (coroutine expected) [13:59:06] ERROR: editor_main\server\dumpxml.lua:73: attempt to index field '?' (a nil value)
-
But when I try to load my 170kb map, + client and server script, I get this error: [19:40:18] ERROR: Infinite/too long execution (editor_main) [19:40:18] ERROR: Aborting; infinite running script I already tried to cut it into 2 map files, but Editor still shows this error. And when I load this map in my Server, it works perfectly. But I cant edit the map, while both map parts are added in Meta File. And, btw, on another map I made, objects which are a few meters away from me, are disappearing and appearing when I move. Thats looks really shitty . Thats also cause of a limit, but Object's. Thanks for ur replys mfg
-
Hi, I've got a few suggestions. 1. Increased Map Size Limit. I dont really know, where the Map Size Limit is, but I quess by about 140kb? I once created a Map with 170KB and Map Editor wasnt able to load it completly. But Server was, so its a bit confusing. I would prefer a increased limit. 2. CreateWater on the Ocean. Its not possible to Create Water far away from San Andreas. It would be better, when we could also create Water on the Ocean. Please reply to this.
-
if source == grav6 then if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition (vehicle , 328.11853027344, -3056.39453125, 635.34979248047 ) setVehicleFrozen ( vehicle , true ) --Here I would need a command like "wait 2 sec and setVehicleFrozen ( vehicle , false )" end end But I think there is no command like that. EDIT: How to set vehicle speed?
-
Hi all, I've got another problem. I made a map with a portal, but everytime I drive in it, I just spin around and fall in the water. Maybe someone know how to fix that. I heard something about setVehicleFrozen, but I dont know exactly how to. Here is the Code. function warp (player) if source == grav6 then if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition (vehicle , 328.11853027344, -3056.39453125, 635.34979248047 ) end end addEventHandler( "onClientMarkerHit", getRootElement(), warp ) UPDATE: Freeze works now, but how to unfreeze after it arrived?
-
Hmm, I'm not that pro at this stuff, so I don't really understand what u mean But, I'll try to explain how it shall work: A Player drives in that marker, so that a Gates opens for him. Every other player has to drive in that marker first too, before that gate is open for them. At my first try, it moved for everyone, so just one player has to drive to the marker. And the script by varez doesn't work at all, at least for me. @varez I made whole new script to test it, so actually, everything should work. function startclient () obj = createObject( 971, 5010.1752929688, -1853.2252197266, 53.170219421387 , 0 , 0 , 0) grav1 = createMarker ( 4974.033203125, -1857.8096923828, 50.550357818604 , "corona" , 8, 0, 0,204, 255) end function markerHit(thePlayer,dimension) if (dimension and thePlayer==getLocalPlayer()) then moveObject (obj, 6000, 5010.1752929688,-1853.2252197266, 41.327033996582) end end addEventHandler( "onClientMarkerHit", grav1, markerHit) addEventHandler( "onClientResourceStart", resourceRoot, startclient )
-
Hi, I want to make a map, but I found a problem, and I don't know how to solve that. I created a Marker. And if a player hits this Marker, an object shall move. But only for the player, who hit that Marker. grav1 = createMarker ( 4974.033203125, -1857.8096923828, 50.550357818604 , "corona" , 8, 0, 0,204, 255) function marker() if source == grav1 then moveObject (obj, 6000, 5010.1752929688,-1853.2252197266, 41.327033996582) end addEventHandler( "onClientMarkerHit", getLocalPlayer(), marker ) end The code is just to let u know how it shall work, its not the full code. Please help me, Bye
-
Yeah thats a big problem for some server providers. Some of my maps using this "bug" too, so I need to find a way to change that. PS: Personally, I think that MTA 1.0 is not so cool as MTA Race.