Jump to content

Anderl

Members
  • Posts

    2,266
  • Joined

  • Last visited

Everything posted by Anderl

  1. Tell us how you "installed" the resource.
  2. Anderl

    need help

    'player' and 'machine' variables are not defined.
  3. Anderl

    playsong3d

    Or make an event creating the sound for source and trigger it for everybody.
  4. What does the data in the file has to do with that? .__. I don't understand what you tried to do but if it is what I think then it has nothing to do but anyway now I would just like to know if it can be implemented.
  5. but if the timer has it's own function: setTimer(function()end,ms,exec) then you don't really have to pass the argument through. example: function Starve ( ) setTimer(function() if ( source and isElement ( source ) ) then setElementHealth ( source, getElementHealth ( source ) - 2 ) end end,1000, 0) end addEventHandler ( "onPlayerSpawn", getRootElement(), Starve ) You need, it's a separated function.
  6. Anderl

    playsong3d

    The sound is created for local player only.
  7. The code is server-side as I said, but you added it as client in the meta.xml
  8. ausrüstung ü These symbols are not allowed.
  9. wrong I said "command" not "function" + not sounds from folder, i said "sounds from url" Also, the function I told you is able to load sounds from URL.
  10. The same way audio, image and script files are loaded without being downloaded. The problem is not about the files being saved somewhere, it's the download.
  11. This is the wrong section. Anyway, the function is playSound.
  12. As far I know, then no. Can you explain? No what?.. This is not possible at the moment or can't be implemented?
  13. And: if ( elementType ) then Should be: if ( elementType == "player" ) then
  14. Hello, I have been asking if it was possible to load TXD and DFF files without having to download them. Everybody said it was impossible so I'm here to ask if is there any way to do that or this can be implemented on MTA in future versions. Thank you.
  15. I guess it's saved nowhere. If the server where you want to save chat history is yours then you can make a script to save it. Use my function that I made for one of the Neo Playgrounds' gamemodes: -- output to log, returns: boolean - true if saved successfully, false otherwise function outputLog( sz ) if( not sz ) then return false end if( not type( sz ) == "string" ) then return false end local pLogFile = fileOpen( "log/server.log", false ) if( pLogFile ) then local aTime = getRealTime( ) local szCurrentTime = "[" .. aTime.month + 1 .. "/" .. aTime.monthday .. "/" .. aTime.year .. " " .. aTime.hour .. ":" .. aTime.minute .. ":" .. aTime.second .. "]" if( fileWrite( pLogFile, szCurrentTime .. " " .. sz ) ) then return true end fileClose( pLogFile ) end return false end With onPlayerChat event.
  16. Is this your full toptimes script?
  17. If their owners wanted their things to be free, they would have made them free, don't you think so?
  18. For example when people sharing Music in internet nobody ask Author's permission. In this case the same. It's illegal, your website has illegal content like all music share websites and someone can report it for copyright infrindgement even if it's a simple and small thing it's illegal unless you prove that you have permission.
  19. First time it will give error of course as the variables aren't defined. You should re-write that in other way.
  20. You'll have to make use of dxDrawRectangle or dxDrawImage to draw an image as an window and also the function guiGetScreenSize. Here is an example of an override of dxDrawRectangle to be ajusted automatically for every resolution: local screenWidth = 800; local screenHeight = 600; local iScreenW, iScreenH = guiGetScreenSize ( ); __dxDrawRectangle = dxDrawRectangle; function dxDrawRectangle ( ... ) local arg = { ... } return __dxDrawRectangle ( ( arg[1] / screenWidth ) * iScreenW, ( arg[2] / screenHeight ) * iScreenH, ( arg[3] / screenWidth ) * iScreenW, ( arg[4] / screenHeight ) * iScreenH, arg[5] or nil, arg[6] or nil ); end Note: Change 'screenWidth' and 'screenHeight' variables to the screen size where you got screen positions.
  21. Anderl

    dxDraw

    He asked for an explanation how to do it but you did not explain how did you get the values "0.7, 0.5, 0.15, 0.5".
  22. Anderl

    Hide Ip adress

    Host the server somewhere else, easier way.
  23. Amazing job that you're doing laserlaser! It's good to see people doing these type of things, making MTA:SA grow up more.
×
×
  • Create New...