Jump to content

Klesh

Members
  • Posts

    306
  • Joined

  • Last visited

Everything posted by Klesh

  1. Klesh

    MTA Server Hosting

    In my country, the only way to change it or convert it's with the state and it's limited money for year, don't works, thanks for the help. If i do it directly the change it's a lot, more than twice.
  2. I'm looking for a MTA hosting in Venezuela, where i can pay with the local money, venezuela servers disappeared, thanks in any advice!
  3. Klesh

    Data Return ?

    I know the code its fine, time ago was working but now its not.
  4. Klesh

    Data Return ?

    Yes, it shows the correct amount of money, the scoreboard only shows the money when the player login, when map change it returns to 0.
  5. Klesh

    Data Return ?

    No works, every time the map starts again it returns to 0
  6. Klesh

    Data Return ?

    When the maps start again, in race, the cash in the scoreboard returns to 0 and is not getting the current!
  7. With that you only are setting the score name without data, he wants to show the location of the player in the map.
  8. Klesh

    Data Return ?

    Hello this code not works as well, when the map loads or player spawn the data is 0 again, how it can check this data some every time ? i tried but nothing, here is the try: localPlayer = getLocalPlayer() function addColumns() exports.scoreboard:scoreboardAddColumn("Money") setElementData(localPlayer,"Money",0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), addColumns) function updateScoreboardMoney() local money = getPlayerMoney(localPlayer) setElementData(localPlayer,"Money",tonumber(money)) end setTimer(updateScoreboardMoney,1000,0)
  9. Klesh

    Check data

    I fix it by my own, thanks anyways to everyone!
  10. Klesh

    Check data

    Now doesn't work when someone wins, and is the same, onPlayerlogin doesn't show the data, i try to fix it but nothing!
  11. Klesh

    Check data

    How i can save this data ? addEvent( 'onPlayerRaceWasted',true ) addEvent( "stats", true ) exports[ 'scoreboard' ]:addScoreboardColumn( 'Wins' ) --exports[ 'scoreboard' ]:addScoreboardColumn( 'Deaths' ) --exports[ 'scoreboard' ]:addScoreboardColumn( 'ratio' ) local restriction = { } function restrictionEnd( playerName ) restriction[ playerName ] = nil end function publicstatsinfo( ) if isElement( source ) then local account = getPlayerAccount( source ) if account then if isGuestAccount( account ) then return end local askdname = getPlayerName( source ) local wins = getAccountData( account, "Wins" ) or 0 local loses = getAccountData( account, "Deaths" ) or 0 if loses and wins then --outputChatBox("#FFA824*" .. askdname .. " won " .. tostring( wins ) .. " times and he lost " ..tostring( loses ).. " times, his ratio is " .. tostring( ratio ) .. "%", root, 255, 12, 15, true) end end else outputChatBox( "Error source is not player" ) end end function DestructionWin( vehicle ) local alivePlayers = getAlivePlayers( ) if #alivePlayers == 1 then if isElement( alivePlayers[1] ) then local account = getPlayerAccount( alivePlayers[1] ) if isGuestAccount( account ) then return end local count = tonumber( getAccountData( account,"Wins" ) ) or 0 setAccountData( account,"Wins",count ) setElementData( alivePlayers[1],'Wins', count ) --outputChatBox ( "#FFA824The player " .. getPlayerName( alivePlayers[1] ) .. " won!", root, 255, 255, 255, true ) end else local account = getPlayerAccount( source ) if isGuestAccount( account ) then return end local loses = tonumber( getAccountData( account,"Deaths" ) or 0 ) + 1 setAccountData( account,"Deaths", loses ) setElementData( source,'Deaths', loses ) end end function onPlayerLogin ( _, acc ) if ( acc ) then local wins = tonumber ( getAccountData ( account, "Wins" ) ) or 0 setElementData ( source, "Wins", wins ) end end addEventHandler ( "onPlayerLogin",root, onPlayerLogin ) addEventHandler( "stats", root, publicstatsinfo ) addEventHandler( "onPlayerRaceWasted", root,DestructionWin )
  12. Klesh

    Check data

    It works but if the player has 20 wins and he/she login the data is 0 no 20, at least if he wins when the map finish!
  13. Klesh

    Check data

    In fact, this resolves something about this? when the player joins show the wins he/she have, its empty.
  14. Klesh

    Check data

    Changed, still the same error, the data doesn't set when player login!
  15. Klesh

    Check data

    Im trying to get the data when the player is login, doesnt show it! addEvent( 'onPlayerRaceWasted',true ) addEvent( "stats", true ) exports[ 'scoreboard' ]:addScoreboardColumn( 'Wins' ) --exports[ 'scoreboard' ]:addScoreboardColumn( 'Deaths' ) --exports[ 'scoreboard' ]:addScoreboardColumn( 'ratio' ) local restriction = { } function restrictionEnd( playerName ) restriction[ playerName ] = nil end function publicstatsinfo( ) if isElement( source ) then local account = getPlayerAccount( source ) if account then if isGuestAccount( account ) then return end local askdname = getPlayerName( source ) local wins = getAccountData( account, "Wins" ) or 0 local loses = getAccountData( account, "Deaths" ) or 0 if loses and wins then --outputChatBox("#FFA824*" .. askdname .. " won " .. tostring( wins ) .. " times and he lost " ..tostring( loses ).. " times, his ratio is " .. tostring( ratio ) .. "%", root, 255, 12, 15, true) end end else outputChatBox( "Error source is not player" ) end end function DestructionWin( vehicle ) local alivePlayers = getAlivePlayers( ) if #alivePlayers == 1 then if isElement( alivePlayers[1] ) then local account = getPlayerAccount( alivePlayers[1] ) if isGuestAccount( account ) then return end local count = tonumber( getAccountData( account,"Wins" ) or 0 ) + 1 setAccountData( account,"Wins",count ) setElementData( alivePlayers[1],'Wins', count ) --outputChatBox ( "#FFA824The player " .. getPlayerName( alivePlayers[1] ) .. " won!", root, 255, 255, 255, true ) end else local account = getPlayerAccount( source ) if isGuestAccount( account ) then return end local loses = tonumber( getAccountData( account,"Deaths" ) or 0 ) + 1 setAccountData( account,"Deaths", loses ) setElementData( source,'Deaths', loses ) end end function onPlayerLogin ( _, acc ) if acc then local acc = getPlayerAccount ( source ) local wins = getAccountData( account, "Wins" ) if wins then setAccountData(acc, wins) end end end addEventHandler ( "onPlayerLogin",root, onPlayerLogin ) addEventHandler( "stats", root, publicstatsinfo ) addEventHandler( "onPlayerRaceWasted", root,DestructionWin )
  16. Hello comunity, im asking for some codes, i need to make a open window also this one open it with a animation. Thanks to everyone.
  17. ------------------ System Information ------------------ Time of this report: 2/5/2012, 23:36:36 Machine name: ANGEL-56B468B42 Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.111025-1629) Language: Spanish (Regional Setting: Spanish) System Manufacturer: Packard Bell NEC System Model: 00000000000000000000000 BIOS: Phoenix - AwardBIOS v6.00PG Processor: AMD Athlon(tm) XP 3000+, MMX, 3DNow, ~2.2GHz Memory: 1024MB RAM Page File: 395MB used, 2068MB 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: No problems found. 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: NVIDIA GeForce 6200 Manufacturer: NVIDIA Chip type: GeForce 6200 DAC type: Integrated RAMDAC Device Key: Enum\PCI\VEN_10DE&DEV_0221&SUBSYS_A4033842&REV_A1 Display Memory: 512.0 MB Current Mode: 1024 x 768 (32 bit) (60Hz) Monitor: Monitor Plug and Play Monitor Max Res: 1600,1200 Driver Name: nv4_disp.dll Driver Version: 6.14.0012.8558 (English) DDI Version: 9 (or higher) Driver Attributes: Final Retail Driver Date/Size: 10/8/2011 00:50:00, 4226688 bytes WHQL Logo'd: Yes WHQL Date Stamp: n/a VDD: no disponible Mini VDD: nv4_mini.sys Mini VDD Date: 10/8/2011 00:50:00, 12791488 bytes Device Identifier: {D7B71E3E-4161-11CF-9C7A-0F8400C2CB35} Vendor ID: 0x10DE Device ID: 0x0221 SubSys ID: 0xA4033842 Revision ID: 0x00A1 Revision ID: 0x00A1 Video Accel: ModeMPEG2_C ModeMPEG2_D ModeWMV9_B ModeWMV9_A Deinterlace Caps: {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(UYVY,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(UYVY,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(YV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(YV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch Registry: OK DDraw Status: Enabled D3D Status: Enabled AGP Status: Enabled DDraw Test Result: Not run D3D7 Test Result: Not run D3D8 Test Result: Not run D3D9 Test Result: Not run ------------- Sound Devices ------------- Description: Realtek AC97 Audio Default Sound Playback: Yes Default Voice Playback: Yes Hardware ID: PCI\VEN_1106&DEV_3059&SUBSYS_D0021631&REV_50 Manufacturer ID: 1 Product ID: 100 Type: WDM Driver Name: ALCXWDM.SYS Driver Version: 5.10.0000.6300 (English) Driver Attributes: Final Retail WHQL Logo'd: Yes Date and Size: 9/24/2008 10:40:22, 4122368 bytes Other Files: Driver Provider: Realtek Semiconductor Corp. HW Accel Level: Full Cap Flags: 0xF5F Min/Max Sample Rate: 8000, 192000 Static/Strm HW Mix Bufs: 26, 25 Static/Strm HW 3D Bufs: 26, 25 HW Memory: 0 Voice Management: No EAX(tm) 2.0 Listen/Src: Yes, Yes I3DL2(tm) Listen/Src: Yes, Yes Sensaura(tm) ZoomFX(tm): No Registry: OK Sound Test Result: Not run Description: Línea #0 del módem (emulada) Default Sound Playback: No Default Voice Playback: No Hardware ID: Manufacturer ID: 1 Product ID: 81 Type: Emulado Driver Name: Driver Version: Driver Attributes: WHQL Logo'd: Date and Size: Other Files: Driver Provider: HW Accel Level: Full Cap Flags: 0x0 Min/Max Sample Rate: 0, 0 Static/Strm HW Mix Bufs: 0, 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: Realtek AC97 Audio Default Sound Capture: Yes Default Voice Capture: Yes Driver Name: ALCXWDM.SYS Driver Version: 5.10.0000.6300 (English) Driver Attributes: Final Retail Date and Size: 9/24/2008 10:40:22, 4122368 bytes Cap Flags: 0x41 Format Flags: 0xFFF Description: Línea #0 del módem (emulada) Default Sound Capture: No Default Voice Capture: No Driver Name: Driver Version: Driver Attributes: Date and Size: Cap Flags: 0x20 Format Flags: 0x0 ----------- 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 Realtek AC97 Audio, Software (Kernel Mode), Output, DLS, Internal Mapeador Microsoft MIDI [Emulado], Hardware (Not Kernel Mode), Output, No DLS, Internal Sint. SW de tabla de ondas GS [Emulado], 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: Teclado Attached: 1 Controller ID: n/a Vendor/Product ID: n/a FF Driver: n/a Device Name: USB Keyboard Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x1241, 0x1503 FF Driver: n/a Device Name: USB Keyboard Attached: 1 Controller ID: 0x0 Vendor/Product ID: 0x1241, 0x1503 FF Driver: n/a Poll w/ Interrupt: No Registry: OK ----------- USB Devices ----------- + Concentrador raíz USB | Vendor/Product ID: 0x1106, 0x3038 | Matching Device ID: usb\root_hub | Service: usbhub | Driver: usbhub.sys, 4/14/2008 00:15:38, 59520 bytes | Driver: usbd.sys, 8/24/2001 08:00:00, 4736 bytes ---------------- Gameport Devices ---------------- ------------ PS/2 Devices ------------ + Dispositivo de teclado HID | Vendor/Product ID: 0x1241, 0x1503 | Matching Device ID: hid_device_system_keyboard | Service: kbdhid | Driver: kbdhid.sys, 4/14/2008 07:25:12, 14720 bytes | Driver: kbdclass.sys, 4/14/2008 07:25:10, 25088 bytes | + Controlador de teclado de Terminal Server | Matching Device ID: root\rdp_kbd | Upper Filters: kbdclass | Service: TermDD | Driver: termdd.sys, 4/14/2008 07:49:44, 40840 bytes | Driver: kbdclass.sys, 4/14/2008 07:25:10, 25088 bytes | + Mouse compatible con HID | Vendor/Product ID: 0x093A, 0x2510 | Matching Device ID: hid_device_system_mouse | Service: mouhid | Driver: mouclass.sys, 4/14/2008 07:19:14, 23552 bytes | Driver: mouhid.sys, 8/24/2001 08:00:00, 12416 bytes | + Controlador de mouse de Terminal Server | Matching Device ID: root\rdp_mou | Upper Filters: mouclass | Service: TermDD | Driver: termdd.sys, 4/14/2008 07:49:44, 40840 bytes
  18. Here is the example, my computer is Windows XP.
  19. Hello community, i have this trouble, time ago i was installed a game, when it finished and i click it to play and happen this: Direct access error, whats wrong there, any solution about this? that happen with 5 o more games. Any Solution?
  20. I knew that, just i want to show it in a text, but the exported function is client, and the message is server.
  21. Didn't know how to call it, hard cuz i want it to dxDrawCreateText, then the getPlayerEXP is server-side, i cant make once, i have to do in 2 files, server and client, i dont made it, im confused.
  22. Hello, i want to call from something from the server side, because other function are clientSide. Example : --Server addEventHandler("playerSide", getRootElement(getThisResource()) addEvent("playerSide", true) function (thePlayer) pThink = exports["something"]:getSomething(thePlayer) end --Client pthink = triggerServerEvent("playerSide", getLocalPlayer()) think = '*' ..pthink It don't works, some other way?
×
×
  • Create New...