Jump to content

DutchCaffeine

Members
  • Posts

    208
  • Joined

  • Last visited

Everything posted by DutchCaffeine

  1. Yeah i want to get rid of the dipsticks arround here. Only it can't. Jeez just nevermind it oke. That is not important. I have an error in my server that he cant parse the ban list. Btw. whats your ip maybe i can add you to that ban list, and then the error is gone. But there is a solution: <settings> <setting name="nvm" value="true" /> </settings>
  2. 2. No per hour. 3. I though that i sayd search the wiki for modules: http://development.mtasa.com/index.php? ... /MTA-MySQL 4. Oke, any way. Some other commands: gamemode [resource_name] That will start a gamemode, like cto. start [resource_name] That will start a basic resource like: scoreboard stop [resource_name] Stops a resources restart [resource_name] Restarts a resource. refresh Will refresh the resource list. For example if there is an error in a meta file and you fixed it. You can use the refresh command, without restarting the whole server. Saves time. 9. I really don't know what you mean. (translation: in the line of the script says behind it, what does that mean). 10. Nvm. that im dutch to. But you can learn english.
  3. 2. How about 15 Euro an hour? 3. Look on the wiki in modules 4. Don't think you get for free 5. Thanks for what .. 9. it is learn not lean. But you complete right. First learn lua. 10. You know what no means. Stop reacting. Only thing you need to do is learn how to code with lua. And also if you think you get everything free, you are stupid!!! So stop asking and start learning. If you don't understand this, you really need to go to school and start learning English.
  4. Ah here is my topic. I allready have it working on my pc. Got a tip on mirc. That i needed to download all the data files from google code. Thanks for your help.
  5. Hello everybody, It seems that i can't play the nighty of mta V1.0 on windows vista. I get an error: Has someone an idea how i can make it run?
  6. Yes it is, but the code it self. So far i can read you can use it on dp2.3 servers also!
  7. Oke, Im interested in that animation script. It is hard to find, i searched on arc (the username) and can't find a release topic. Also searched with it on the comminity home, but still came up empty. So i hope a new version of the classes will be out soon.
  8. I need to use string.format. Order way i need to enter a bunch of numbers. And it won't end then. And where can i find arc_'s class? Edit In GUIColection.lua on line 23 there is function called showCursor( true ); I think it need to be deleted?
  9. Your welcome. I will create some documentation also. I hope that other poeple also create some pages! I builded this morning a nice, and usefull function for this nice set of gui classes! Much servers are using this trick, it is called fadeGui, it is not a standard mta function. But with a little help of a event you can create it. But now it is availible for gui classes also! I created it, and i might say im proud of my work! To install it open up sharedfuncs_class.lua, and put somewhere in that file: function GUISharedFuncs:Fade(fadeIn, maxAlpha) maxAlpha = maxAlpha or 1.0 if(type(self) ~= "table") then outputDebugString( "calling method incorrectly ( object.method() )! use object:method()", 1 ); return false end fFadeIn = function() currentAlpha = tonumber(string.format('%.2f', guiGetAlpha(self.gui))); if(currentAlpha == maxAlpha) then guiSetAlpha(self.gui, maxAlpha); removeEventHandler("onClientRender", self.gui, fFadeIn); else guiSetAlpha(self.gui, currentAlpha+0.1); end end fFadeOut = function() currentAlpha = tonumber(string.format('%.2f', guiGetAlpha(self.gui))); if(currentAlpha == 0.0) then guiSetAlpha(self.gui, 0.0); -- just to be sure. guiSetVisible(self.gui, false); removeEventHandler("onClientRender", self.gui, fFadeOut); else guiSetAlpha(self.gui, currentAlpha-0.1); end end if(type(fadeIn) == "boolean") then self.maxAlpha = maxAlpha; if fadeIn == true then guiSetAlpha(self.gui, 0.0); guiSetVisible(self.gui, true); addEventHandler("onClientRender", self.gui, fFadeIn) elseif(fadeIn == false) then addEventHandler("onClientRender", self.gui, fFadeOut) end end return "fading" end offcourse you can replace the whole file with the new function: http://mta.pastebin.com/f6f81d402 To use it: -- just a simple window wnd = Window:Create( 10, 200, 200, 110, "" ); wnd:Visible(false); -- offcourse you may not see the window -- then function toggleWnd(cmd) if wnd:Visible() == false then wnd:Fade(true, 0.8); -- Fade it in, and the max alpha is 0.8. If you don't fill out the alpha it will be 1.0 standard. else wnd:Fade(false); -- Max alpha is not important! end end addCommandHandler('tw', toggleWnd); Syntax: Object:Fade(bool fadeIn, Float maxAlpha = 1.0); Good luck with it, and have a beer for me And now i going to unban my self from my private server. I banned the serial 0000-0000-0000-0000 for fun. But what happend my stupid server banned me, and not that serial. I just getting crazy. Or am i stupid to ban that serial. Hmmmm.... Alexander
  10. Hello, Support 50p by helping him to create some documentation. I already started creating it at the wiki! You will need a mta community account to help creating the documentation. The url to the documentation: http://development.mtasa.com/index.php? ... UI_Classes
  11. very nice release, i waited very long for this. Thank you very much! I report errors, bugs if necessary!
  12. Much: kickPlayer(source, getRootElement(), "Your name is invalid! Your name must consist of your name_surname") -- Layout: kickPlayer(element player1, element player2, string reason) --[[ player1: the player who you want to kick out of the server player2: the player who kicked player1. or the root element (getRootElement()) (console) reason: The reason why player1 is kicked ]]--
  13. ** -- Unhandled exception -- ** Time = Tue Sep 09 00:06:35 2008 Module = D:\Program Files\MTA San Andreas\mods\deathmatch\client.dll Code = 0xC0000005 Offset = 0x0BDD2E5A EAX=1911BAB0 EBX=18F9F3C8 ECX=00000000 EDX=18F9F3C8 ESI=00000000 EDI=1694B150 EBP=0022F218 ESP=0022F1F4 EIP=0BDD2E5A FLG=00010216 CS=001B DS=0023 SS=0023 ES=0023 FS=003B GS=0000 ** -- End of unhandled exception -- ** http://dexora.net/client_09092008_0006.rar sorry forget to put the core.log in the rar, but i got only one crash. This is also almost the same i got yesterday in dp 2: ** -- Unhandled exception -- ** Time = Mon Sep 08 20:27:24 2008 Module = D:\Program Files\MTA San Andreas\mods\deathmatch\client.dll Code = 0xC0000005 Offset = 0x0BE02C31 EAX=00000000 EBX=173F4458 ECX=168CFE58 EDX=173F4644 ESI=173F45D4 EDI=00000006 EBP=0022F538 ESP=0022F51C EIP=0BE02C31 FLG=00010202 CS=001B DS=0023 SS=0023 ES=0023 FS=003B GS=0000 ** -- End of unhandled exception -- **
  14. jep that is the solution for it
  15. It is a nice function getElementByID but if i need a police vehicle i need to count every tag.
  16. Maybe you have forgeted it, the map editor is not availible. So why specially in .map files, i store all my positions in an table. Tables are faster then loading from a xml files (inclusive .map files) And i don't use the map editor for example spawn positions, vehicle's, moving objects, objects hell eveything. Why not: You can't use the objects and can't do something with them, you can't set in a map file in what dimision the object will be or the pickup. You CAN'T do that. (for my knows) So you can better store it in a costum xml file, and you can load it and put them directly in the dimision you want! Or just build them in to an table (tables are faster then loading from xml, put the xml data into an array). Even loading from an xml uses much memory usage!
  17. Do you have in your meta.xml the next line: <export function="function_name" />
  18. uhm, you can script very well, uhm not really. // commands are php, C# commands NOT of lua: addEventHandler("onPlayerJoin",getRootElement(),playerjoined) -- executes function playerjoined when player connects function playerjoined() start of the function spawnPlayer(source,0,0,3) -- spawns source element (in this case player who joined) at coordinates 0,0,3 fadeCamera(source,true) -- fades screen in, so it won't be black end -- end of the function -- Block commands: --[[i'm a block command yes an block command ]]
  19. It need to be funny. But really it's the hard truth
  20. DutchCaffeine

    Installing

    Download notepad++ google for it, i don't know the link and to lazy to search
  21. Boy boy boy boy LEARN lua, creating a complete rp(g) gamemode costs 500 €! So, first staps: Create little scripts, test them if it is very good go higher and higher till you can make an rp(g). Good luck! And don't ask who will do it for free. We are stupid but not that stupid.
  22. I don't think so, That is up to your gta!
  23. Yes nice function really nice. But not for reallife servers. I be busy with a tow truck system/job. But i need that event also, but i be busy with an other solution for that. And that are: CreateRadarArea Also a very nice function!
  24. I'm almost 100 % sure that everybody had that. Almost a week a go i needed to wait a minute or 2 before my server starts up. And the reason of that was, that my server (everybody's server) need to login into gamemonitor.com. But gamemonitor was updating there application, i was thinking that the reason why my server started so slow up came threw gamemonitor's update. No that it is updated (i don't know if they are ready or not, it seems to be NOT) my server is much faster while starting up. So the reason of the server browser can be the same reason as of my server, thats why i also think they are not ready with the update yet. So i give it two weeks that are 17 days, then the server browser will be faster (i think)
  25. These functions aren't working for me. I get an error: INFO: Loading script failed: D:/mtaservers/lf/mods/deathmatch/resources/lexlife/server/core/utils.lua:6: '' expected near 'in' And that line is: _G[funcname](unpack(arg)) Alexander de Jong
×
×
  • Create New...