Jump to content

Buffalo

Members
  • Posts

    283
  • Joined

  • Last visited

Everything posted by Buffalo

  1. Contact me on skype: drugys777
  2. Well i would still advice to do how i said. Just add some params into table like alpha which can be then changed using timers to fade out lines using dx function.
  3. You can make simple chatbox in few minutes. You need a table where you store chat content and loop though it: chatBox = {} table.insert(chatBox,'This is test message #1') table.insert(chatBox,'This is test message #2') table.insert(chatBox,'This is test message #3') local yval = 0 for i,v in ipairs(chatBox)do dxDrawText(v,x,y+yval,w,h,....) yval = yval + (h + 1) end Well hook up onClientChatMessage for content updating with table.remove and table.insert
  4. No, in this function (table.sort) operators < > sorts alphabetical values according to their ASCII values. Previous example works perfectly, i was just wondering if it will sort like this without using operator < and i think it wouldn't.
  5. Is it possible to detect remote players head detection prescisely client side only? Local player is piece of cake tho. Something i tried but works only partially. addEventHandler ( "onClientRender", root, function() for i, player in ipairs ( getElementsByType ( "player", root,true ) ) do local x,y,z if getPedTask(player,'primary',5) == 'TASK_SIMPLE_USE_GUN' then x,y,z = getPedTargetEnd(player) else x,y,z = getElementPosition(player) local rot = getPedCameraRotation ( player ) x = x + math.sin ( math.rad ( rot ) ) * 3 y = y + math.cos ( math.rad ( rot ) ) * 3 end setPedLookAt ( player, x, y, z ) end end )
  6. You can't edit user's chatbox settings via scripting, but you can create your own chat system tho.
  7. I'm not sure but if you want to sort it correctly you should use table.sort(sortTable, function(a, b) return a < b end )
  8. Buffalo

    Radar

    Only if you script your own radar.
  9. Using above mentioned technique will not reduce the lagg. It works with third party mod tho.
  10. Amazing logo. I'll definitely put it to a good use.
  11. Yes it's on Debian 64-bit. But well, i've just tested it on Debian 32-bit and Windows and it freezes too.
  12. Well i have disabled stats system and every resource that could use sqlite db commands. Now it freezes for 10seconds after this simple test function: addCommandHandler('test',function(player) local serial = getPlayerSerial(player) executeSQLSelect ( "AdminInfo", "adminlvl","serial = '" .. serial .. "'") end) It worked all fine back some time. Also works fine if registry.db is deleted. Backtrace (by this guide https://wiki.multitheftauto.com/wiki/Bui ... er_freezes) gives this: #0 0xb74e2f0f in ?? () from /usr/lib/libsqlite3.so.0 #1 0xb74e7090 in ?? () from /usr/lib/libsqlite3.so.0 #2 0xb7506cae in ?? () from /usr/lib/libsqlite3.so.0 #3 0xb7556685 in ?? () from /usr/lib/libsqlite3.so.0 #4 0xb753c670 in sqlite3_step () from /usr/lib/libsqlite3.so.0 #5 0xb7735ba2 in CRegistry::QueryInternal(char const*, CRegistryResult*) () from /root/race/mods/deathmatch/deathmatch.so #6 0xb77381a1 in CRegistry::Select(std::string const&, std::string const&, std::string const&, unsigned int, CRegistryResult*) () from /root/race/mods/deathmatch/deathmatch.so #7 0xb777b823 in CStaticFunctionDefinitions::ExecuteSQLSelect(std::string const&, std::string const&, std::string const&, unsigned int, CRegistryResult*) () from /root/race/mods/deathmatch/deathmatch.so #8 0xb77e1ca5 in CLuaFunctionDefinitions::ExecuteSQLSelect(lua_State*) () from /root/race/mods/deathmatch/deathmatch.so #9 0xb7877571 in luaD_precall () from /root/race/mods/deathmatch/deathmatch.so #10 0xb78829d0 in luaV_execute () from /root/race/mods/deathmatch/deathmatch.so #11 0xb7877a58 in luaD_call () from /root/race/mods/deathmatch/deathmatch.so #12 0xb7872781 in f_call () from /root/race/mods/deathmatch/deathmatch.so #13 0xb7876fb3 in luaD_rawrunprotected () from /root/race/mods/deathmatch/deathmatch.so #14 0xb7877018 in luaD_pcall () from /root/race/mods/deathmatch/deathmatch.so #15 0xb7872598 in lua_pcall () from /root/race/mods/deathmatch/deathmatch.so ---Type <return> to continue, or q <return> to quit---
  13. Every time player joins the server it freezes with current registry.db : http://www.mediafire.com/?raf7v0z4ttgz2x9 Is it too big ? There is important data stats and etc.
  14. Russian Federation, Stavropol Mldc lietuviškai kalbėt. Chujnia būtų Warsawa, Poland
  15. Could you provide a link to that skin?
  16. It used to work for me by just simply binding a key to that function and it would stay detached until key is pressed.
  17. Buffalo

    Breath

    No, you can script one though. Disable old one using onClientPlayerDamage event and showPlayerHudComponent function. Check if player is under water with isElementInWater (onClientPlayerDamage?) and draw own breath accordingly. V for Vendetta !
  18. Awesome! Moving to 1.2 already. Thanks!
  19. I've replaced shovel without any problem.
  20. Buffalo

    Crash issue 1.1

    a.k.a http://bugs.mtasa.com/view.php?id=6503 dxdiag ------------------ System Information ------------------ Time of this report: 9/11/2011, 17:26:49 Machine name: PERSONALAS Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.101209-1647) Language: English (Regional Setting: Lithuanian) System Manufacturer: Dell Inc. System Model: MM061 BIOS: Phoenix ROM BIOS PLUS Version 1.10 A17 Processor: Intel(R) Core(TM) Duo CPU T2450 @ 2.00GHz (2 CPUs) Memory: 2038MB RAM Page File: 824MB used, 3106MB available Windows Dir: C:\WINDOWS DirectX Version: DirectX 9.0c (4.09.0000.0904) DX Setup Parameters: Not found DxDiag Version: 5.03.2600.5512 32bit Unicode ------------ DxDiag Notes ------------ DirectX Files Tab: No problems found. Display Tab 1: No problems found. Sound Tab 1: No problems found. Sound Tab 2: The file btaudio.sys is not digitally signed, which means that it has not been tested by Microsoft's Windows Hardware Quality Labs (WHQL). You may be able to get a WHQL logo'd driver from the hardware manufacturer. Sound Tab 3: The file btaudio.sys is not digitally signed, which means that it has not been tested by Microsoft's Windows Hardware Quality Labs (WHQL). You may be able to get a WHQL logo'd driver from the hardware manufacturer. Music Tab: No problems found. Input Tab: No problems found. Network Tab: No problems found. -------------------- DirectX Debug Levels -------------------- Direct3D: 0/4 (n/a) DirectDraw: 0/4 (retail) DirectInput: 0/5 (n/a) DirectMusic: 0/5 (n/a) DirectPlay: 0/9 (retail) DirectSound: 0/5 (retail) DirectShow: 0/6 (retail) --------------- Display Devices --------------- Card name: Mobile Intel(R) 945GM Express Chipset Family Manufacturer: Intel Corporation Chip type: Intel(R) GMA 950 DAC type: Internal Device Key: Enum\PCI\VEN_8086&DEV_27A2&SUBSYS_01BD1028&REV_03 Display Memory: 224.0 MB Current Mode: 1280 x 800 (32 bit) (60Hz) Monitor: Plug and Play Monitor Monitor Max Res: 1600,1200 Driver Name: igxprd32.dll Driver Version: 6.14.0010.4814 (English) DDI Version: 9 (or higher) Driver Attributes: Final Retail Driver Date/Size: 3/30/2007 21:33:56, 57344 bytes WHQL Logo'd: Yes WHQL Date Stamp: n/a VDD: n/a Mini VDD: igxpmp32.sys Mini VDD Date: 3/30/2007 21:34:14, 5704672 bytes Device Identifier: {D7B78E66-64E2-11CF-5661-B721A2C2CB35} Vendor ID: 0x8086 Device ID: 0x27A2 SubSys ID: 0x01BD1028 Revision ID: 0x0003 Revision ID: 0x0003 Video Accel: Deinterlace Caps: n/a Registry: OK DDraw Status: Enabled D3D Status: Enabled AGP Status: Not Available DDraw Test Result: Not run D3D7 Test Result: Not run D3D8 Test Result: Not run D3D9 Test Result: Not run ------------- Sound Devices ------------- Description: SigmaTel Audio Default Sound Playback: Yes Default Voice Playback: Yes Hardware ID: HDAUDIO\FUNC_01&VEN_8384&DEV_7690&SUBSYS_102801BD&REV_1022 Manufacturer ID: 1 Product ID: 100 Type: WDM Driver Name: sthda.sys Driver Version: 5.10.5515.0000 (English) Driver Attributes: Final Retail WHQL Logo'd: Yes Date and Size: 5/10/2007 10:24:34, 1222840 bytes Other Files: Driver Provider: SigmaTel HW Accel Level: Full Cap Flags: 0xB5B Min/Max Sample Rate: 44100, 96000 Static/Strm HW Mix Bufs: 1, 0 Static/Strm HW 3D Bufs: 0, 0 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: No, No I3DL2(tm) Listen/Src: No, No Sensaura(tm) ZoomFX(tm): No Registry: OK Sound Test Result: Not run Description: Bluetooth Audio Default Sound Playback: No Default Voice Playback: No Hardware ID: Manufacturer ID: 1 Product ID: 100 Type: WDM Driver Name: btaudio.sys Driver Version: 5.00.0001.2609 (English) Driver Attributes: Final Retail WHQL Logo'd: No Date and Size: 5/24/2006 18:07:18, 328237 bytes Other Files: Driver Provider: HW Accel Level: Full Cap Flags: 0x959 Min/Max Sample Rate: 8000, 8000 Static/Strm HW Mix Bufs: 1, 0 Static/Strm HW 3D Bufs: 0, 0 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: No, No I3DL2(tm) Listen/Src: No, No Sensaura(tm) ZoomFX(tm): No Registry: OK Sound Test Result: Not run Description: Bluetooth High Quality Audio Default Sound Playback: No Default Voice Playback: No Hardware ID: Manufacturer ID: 1 Product ID: 100 Type: WDM Driver Name: btaudio.sys Driver Version: 5.00.0001.2609 (English) Driver Attributes: Final Retail WHQL Logo'd: No Date and Size: 5/24/2006 18:07:18, 328237 bytes Other Files: Driver Provider: HW Accel Level: Full Cap Flags: 0xB5B Min/Max Sample Rate: 48000, 48000 Static/Strm HW Mix Bufs: 1, 0 Static/Strm HW 3D Bufs: 0, 0 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: No, No I3DL2(tm) Listen/Src: No, No Sensaura(tm) ZoomFX(tm): No Registry: OK Sound Test Result: Not run --------------------- Sound Capture Devices --------------------- Description: Audio_Device Default Sound Capture: Yes Default Voice Capture: Yes Driver Name: usbaudio.sys Driver Version: 5.01.2600.5512 (English) Driver Attributes: Final Retail Date and Size: 4/14/2008 01:15:14, 60032 bytes Cap Flags: 0x41 Format Flags: 0x440 Description: SigmaTel Audio Default Sound Capture: No Default Voice Capture: No Driver Name: sthda.sys Driver Version: 5.10.5515.0000 (English) Driver Attributes: Final Retail Date and Size: 5/10/2007 10:24:34, 1222840 bytes Cap Flags: 0x41 Format Flags: 0xCC0 Description: Bluetooth Audio Default Sound Capture: No Default Voice Capture: No Driver Name: btaudio.sys Driver Version: 5.00.0001.2609 (English) Driver Attributes: Final Retail Date and Size: 5/24/2006 18:07:18, 328237 bytes Cap Flags: 0x41 Format Flags: 0x4 Description: Bluetooth High Quality Audio Default Sound Capture: No Default Voice Capture: No Driver Name: btaudio.sys Driver Version: 5.00.0001.2609 (English) Driver Attributes: Final Retail Date and Size: 5/24/2006 18:07:18, 328237 bytes Cap Flags: 0x41 Format Flags: 0xCC0 ----------- DirectMusic ----------- DLS Path: C:\WINDOWS\SYSTEM32\drivers\GM.DLS DLS Version: 1.00.0016.0002 Acceleration: n/a Ports: Microsoft Synthesizer, Software (Not Kernel Mode), Output, DLS, Internal, Default Port Bluetooth Audio, Software (Kernel Mode), Output, DLS, Internal Bluetooth High Quality Audio, Software (Kernel Mode), Output, DLS, Internal Microsoft MIDI Mapper [Emulated], Hardware (Not Kernel Mode), Output, No DLS, Internal Microsoft GS Wavetable SW Synth [Emulated], Hardware (Not Kernel Mode), Output, No DLS, Internal Registry: OK Test Result: Not run ------------------- DirectInput Devices ------------------- Device Name: Mouse Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: Keyboard Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x0A5C, 0x4503 FF Driver: n/a Poll w/ Interrupt: No Registry: OK ----------- USB Devices ----------- + USB Root Hub | Vendor/Product ID: 0x8086, 0x27C8 | Matching Device ID: usb\root_hub | Service: usbhub | Driver: usbhub.sys, 4/14/2008 00:15:38, 59520 bytes
  21. Did you try kimmis9 code? He has updated it: detachElements ( hydra, lift )
  22. Updated with utf docs syntax and fixed some small mistakes. http://www.mediafire.com/file/k78f5xsa4khqzz9/lua.xml (same link)
  23. So that client function wont fit here. I think all client resources are started at the same time, independently which downloaded first.
×
×
  • Create New...