Jump to content

Buffalo

Members
  • Posts

    283
  • Joined

  • Last visited

Everything posted by Buffalo

  1. I've got the very same problem. What exactly did you change?
  2. Actually, it's kinda weird to see so many Saudi and other '#$@#@!' language talking players, just wondering why. Is MTA so popular in their country? Would be nice to hear some interpretations.
  3. Buffalo

    HEX to RGB

    Nevermind, i found it myself. Like: #1DFFAA R = 16(1+13/16) = 29 G= 16(15+15/16) = 255 B = 16(10+10/16) = 170
  4. Buffalo

    HEX to RGB

    I need to change HEX to RGB. I don't know how it works nor how it can be worked out, need a helping hand here.
  5. Jo nikas yra fail, niekur nepabėgsi masj! T.y. murklai!
  6. As i remember 'unknown error' using admin resource means 'Admin rights missing in acl.xml'
  7. Exactly. It made me confused too earlier.
  8. As far as i know - not. That would be catastrophic - like setTimer(takeScreenShot,50,0)
  9. policeVehicle is not a table: if (getElementModel( source ) == policeVehicle ) and ( not policeSkins[getElementModel( player )] ) then
  10. Give a name to function which draws text and other stuff: -- Direct X Drawing function drawText() dxDrawText("Player Rules",536.0,172.0,817.0,217.0,tocolor(255,0,0,255),0.8,"bankgothic","top","left",false,false,false) dxDrawLine(497.0,201.0,1341.0,201.0,tocolor(255,0,0,255),1.0,false) end addEventHandler("onClientRender",root,drawText) Then remove text with removeEventHandler("onClientRender",root,drawText) Keep in mind that players using different resolution may not see text and lines drawn properly, you need a fix for that.
  11. You need to provide code which was edited.
  12. So, you made that if he clicked button, it would draw all windows again, when it should do a checkbox check function, like: addEventHandler ("onClientGUIClick", GUIEditor_Button[1], function (button, state) if button == "left" and state == "up" then if guiCheckBoxGetSelected(GUIEditor_Checkbox[1]) == false then --checkbox not selected return else -- checkbox selected guiSetVisible(GUIEditor_Window[1], false) showCursor(false, false) outputChatBox("Thank you for accepting our rules.") end end end,false)
  13. Set postGUI to true (dxDrawText) mytext = dxText:create( bla,bla,bla... ) mytext:postGUI(true)
  14. Buffalo

    Radar

    It's server-side script (server event onPlayerSpawn used), so it must be just like that: <meta> <info author="Snake" description="Radar Red Blips" version="4.0.0"/> <script src="radar.lua" type="server" /> </meta>
  15. Bandžiau jau su freeroam'u, nepavyko su juo, nepavyks ir su kitais kol nepasirodys maniškis mta roleplay (kurį jau 2 metus lukštenu), tada tie kurie lošia turėtų persikelt pilnai į mta ir paplist kituose lt servuose. O taip be užsieniečių nieko nebus, vienas kitas : ( Zombie serve irgi vieni užsieniečiai, nors ir neblogai jau sukurtas.
  16. Baik juokus, jau pusmetį servas stovi - s1.justhost.lt:22003 Keista kad neatradai, nes žaidėjų 40-64 Lankykis tokiuose saituose kaip gtahlep.lt - žinosi kas dedas =D
  17. Use examples from here https://wiki.multitheftauto.com/wiki/EngineImportTXD
  18. Voted! One of the Best mods for sure
  19. Zombie Fast running makes the game much faster and imo it's the only way to challenge players. Of course, it is pretty lame if they kill you whenever you spawn, so my option was to create 3 spheres: first for normal zombies, second for faster zombies and last for the most challenging zombies. So if player don't get enough challenge from sphere 1, he goes to the next sphere. And if everything is considered correctly, it's not lame, it's even cooler;
  20. Buffalo

    Players

    _G is a table, so you need to create it, and if you're planning to use lua further, learn to manipulate them - http://lua-users.org/wiki/TablesTutorial so: _G = { 'object1' = createObject(8838,3330.00000000,-1710.00000000,0.00000000,0.00000000,0.00000000,0.00000000), 'object2' = createObject(8838,3335.00000000,-1710.00000000,0.00000000,0.00000000,0.00000000,0.00000000), 'object3' = createObject(8838,3340.00000000,-1710.00000000,0.00000000,0.00000000,0.00000000,0.00000000), 'object4' = createObject(8838,3345.00000000,-1710.00000000,0.00000000,0.00000000,0.00000000,0.00000000), 'object5' = createObject(8838,3350.00000000,-1710.00000000,0.00000000,0.00000000,0.00000000,0.00000000) } use 50p's code and use debug, to find out future mistakes: function moveObj( player ) local ID = getIDFromPlayer(player)--(you need to get player ID with "id system") outputChatBox('[DEBUG]: player ID is '..tostring(ID)) -- shows if its good moveObject( _G[ "object"..tostring(ID) ], 0, 0, 0, 0 ) end addEventHandler( "onMarkerHit", getRootElement(), moveObj) Also you created function 'moveObj', so in event handler it must be identical, not 'moveobj'
  21. Wiki is working, i've got it, thanks anyway.
  22. Since wiki is closed, i can't get this module, does anyone have it? I need it for linux server, since older version crashes it when it tries to connect..
  23. wiki doesnt work atm.. heres call(getResourceFromName('dxscoreboard'),'scoreboardAddColumn',friendlyName,getRootElement(),Width,name,row) friendlyName - element data name name - name in scoreboard row - 1 - first, 2 - second etc.
×
×
  • Create New...