-
Posts
1,273 -
Joined
-
Last visited
-
Days Won
1
Everything posted by GTX
-
As I said, Turkish server running by Turkish retards. Leon also stole new TG login panel and changed its design. He also stole old TG user panel which was made by Nextreme. How they dare? Greetings, GTX The boss of Rextox (^) and its clan
-
Thanks but there are about 1000 resources which have to be cancelled. Is there another way?
-
For example I have: outputChatBox"hi" Then I want to cancel this (with cancelEvent() or something). So, it will not output "hi" into chatbox. Got it? Thanks in advance!
-
Try this: Server: addEventHandler("onPlayerLogin", root, function(_, b) local account = getAccountName(b) if isObjectInACLGroup("user.".. account, aclGetGroup("Admin" )) then setElementData(source, "gm", "true") end end ) Client: addEventHandler("onClientPlayerDamage", localPlayer, function() if getElementData(source, "gm") then cancelEvent() end end )
-
You're welcome.
-
Try this: local screenW, screenH = guiGetScreenSize() local i = 0 function render() dxDrawRectangle((screenW - 23) / 2-131, (screenH - 10) / 2, i, 10, tocolor(144, 3, 3, 255), true) i=i+1 if i >= 100 then removeEventHandler("onClientRender", root, render) end end addEventHandler("onClientRender", root, render)
-
function message () local hour, minutes = getTime() if (hour >= 20 and minutes == 30 ) then outputChatBox("#D21D1D[Reporte #D21D1DMilitar]: La Noche Comenzo.", getRootElement()) end end addEventHandler("onResourceStart", resourceRoot, message) --- Nueva Linea function info () local hour, minutes = getTime() if (hour >= 6 and minutes == 0 ) then outputChatBox("#D21D1D[Reporte #D21D1DMilitar]: Ah amanecido. #F2184BHora #F5F5FF06:00", getRootElement()) end end addEventHandler("onResourceStart", resourceRoot, info)
-
Remove "". <teams> <team name="Super Pro Race Team" color="#00FF00" tag="[sPR]" aclGroup="Admin" /> </teams>
-
Well, no it hasn't. I removed the world model and in this picture, I'm "in it". The problem is that when someone enters in this model, I can't see him.
-
Hello, I'm trying to remove world model. Here's my code: removeWorldModel(5848, 50, 1051, -933, 46) -- object id removeWorldModel(5849, 50, 1051, -933, 46) -- lod removeWorldModel(1260, 50, 1051, -933, 46) -- object id removeWorldModel(1266, 50, 1051, -933, 46) -- lod And it actually removes the object but there's the problem: http://shrani.si/f/3e/qt/3kybxl75/mta-s ... 0619-2.png Thanks in advance!
-
Type this in your console: restart race
-
theLabel = guiCreateLabel( 0.02, 0.04, 0.94, 0.92, "This gamemode is based on the Demolition Derby game, Flatout and Flatout 2. We have some custom Vehicle models from this game, also we have simple Demolition Derby maps. In our maps, there are no fixes, only nitro for higher Damage. In real life, you couldn't repair your vehicle by just driving over a fix thingy, so you'll have to take care of your car.", true, tabHelp ) guiLabelSetHorizontalAlign(theLabel, "left", true)
-
Code from [editor]/editor_main/client/saveloadtest_client.lua. Check line 75+. local loadedMap = false local totalBar = 0 local loadingBar = 0 local resX, resY = guiGetScreenSize() addEvent ( "saveloadtest_return",true ) function openResource ( resourceName ) triggerServerEvent ( "openResource", getLocalPlayer(), resourceName ) end addEventHandler ( "saveloadtest_return", getRootElement(), function ( command, returnValue, returnValue2, reason ) reason = reason or "" if ( command ) == "open" then if ( returnValue ) then for k,vehicle in ipairs(getElementsByType"vehicle") do makeVehicleStatic(vehicle) end loadedMap = returnValue editor_gui.closeLoadDialog() else editor_gui.guiShowMessageBox ( "Map resource could not be started!", "error", "Error", true ) end elseif ( command ) == "save" then if ( returnValue ) then loadedMap = returnValue2 editor_gui.closeSaveDialog() else editor_gui.guiShowMessageBox ( "Map resource could not be saved! "..reason, "error", "Error", true ) editor_gui.restoreSaveDialog() end elseif ( command ) == "quickSave" then reason = reason or "The target resource may be in .zip format or corrupted." editor_gui.guiShowMessageBox ( "Map resource could not be saved! "..reason, "error", "Error", true ) editor_gui.restoreSaveDialog() elseif ( command ) == "test" then reason = reason or "" editor_gui.guiShowMessageBox ( "Test could not be started! "..reason, "error", "Error", true ) editor_gui.stopTest() elseif ( command == "close" ) then editor_gui.closeSaveDialog() editor_gui.closeLoadDialog() end end ) function saveResource ( resourceName ) triggerServerEvent ( "saveResource", getLocalPlayer(), resourceName ) end function newResource () triggerServerEvent("newResource",getLocalPlayer()) end function showProgressBar(elementsDone, elementsTotal) if (type(elementsDone) == "boolean") then removeEventHandler("onClientRender", root, drawStaticBar) removeEventHandler("onClientRender", root, drawLoadingBar) loadingBar = 0 totalBar = 0 return end if (elementsDone == 0) then addEventHandler("onClientRender", root, drawStaticBar) addEventHandler("onClientRender", root, drawLoadingBar) end if (elementsTotal) then totalBar = elementsTotal end loadingBar = ((elementsDone / totalBar) * 100) * 5.2 end addEvent("saveLoadProgressBar", true) addEventHandler("saveLoadProgressBar", localPlayer, showProgressBar) function drawStaticBar() dxDrawRectangle((resX/2)-270, (resY/2)-22, 540.0, 44.0, tocolor(0,0,0,150), false) dxDrawRectangle((resX/2)-265, (resY/2)-16, 530.0, 33.0, tocolor(0,0,0,250), false) end function drawLoadingBar() dxDrawRectangle((resX/2)-261, (resY/2)-12, loadingBar, 25.0, tocolor(200,200,50,255), false) dxDrawText("Loading... "..(math.floor(loadingBar/5.2)).."%", (resX/2)-145, (resY/2)-15, (resY/2)-1, (resX/2)-5, tocolor(0,0,255,255),1.0,"bankgothic","left","top",false,false,false) end
-
Restart/start race... destructionderby is only a script!
-
Put your code in race/modes/destructionderby.lua and restart your race resource.
-
Here's our new recorded video! Tell us what do you think about it . Do you require a map recorder? Contact me! Like, comment and subscribe! Check out our channel too!
-
<meta> <script src="DestructionDerby.lua"/> </meta>
-
This is the right section: viewforum.php?f=148 This section is a map showroom .
-
Use onClientRender, not setTimer.
-
Does anybody know what's IPB password encryption algorithm? I think it is SHA1, but I can't get it to work. I tried: - sha1(salt..password) - sha1(hash..password) - sha1(user..password) And I tried md5 also and none of it did work. Thanks in advance. Edit: I'm using IP.Board 3.3.4 Edit 2: Solved.
-
Create your own animation. It's simple.
-
Uhm, I tried with the code below, but it doesn't work... What can I do? function GM() for i, v in ipairs(getElementsByType"vehicle") do if isElementCollidableWith(v, v) then setElementCollidableWith(v, v, false) else setElementCollidableWith(v, v, true) end end end addCommandHandler("gm", GM)
-
Oh lol. I was confused.. Well, thanks!