Jump to content

csiguusz

Members
  • Posts

    500
  • Joined

  • Last visited

Everything posted by csiguusz

  1. You can replace an object what you dont often use with the gasmask model then attach it to the player's head.
  2. I didn't understand your problem really...Try this maybe: addEvent( "onTravelScreenStart", true ) addEventHandler ( "onTravelScreenStart", root, function () addEventHandler ( "onClientPreRender", root, drawBackround ) end)
  3. I don't think it's a problem, he just defines a variable in the first line and then raises it with 1 on thee fourth. @JoZeFSvK: If you want to move the camera continuously, then use your load() function with "onClientPreRender" event.
  4. Yeah, I also know it so. But lastTick is a tick count in the past, and getTickCount() will return the current tick count wich will be bigger than lastTick I think. If I'm right then "if ( lastTick - getTickCount() < 500 ) then" doesn't have much sense.
  5. getTickCount() will always be a bigger number than lastTick, won't it? So it will be always smaller than 500.
  6. Use "WantedLv" for set element data instead of "Wanted". setElementData ( source, "WantedLv", zero )
  7. triggerServerEvent("del", root, duser) Use localPlayer instead of root: triggerServerEvent("del", localPlayer, duser)
  8. Hi. I just want to report some bugs. At the installation it could not find mta directory automatically so I set it manually, but it can't start client or server and even the resurce browser on the left is empty. Error when I try to start server or client from the editor: Those aren't big problems for me, but what very annoying is, that when I copy-paste some text, it loses syntax higlighting and the text will become gray.
  9. Maybe source is not a valid player element?
  10. csiguusz

    Group

    Set forceHideTeam to "true" in the meta.xml.
  11. csiguusz

    Group

    You can disable showing teams.
  12. csiguusz

    Group

    With team functions a with a little scripting you can make it too.
  13. csiguusz

    Group

    There are also similar functions, you can create and edit "teams" with them. createTeam
  14. csiguusz

    Server not working

    It can be also your router I think. I had a Tilgin router before ( it was a piece of sh*t ), it was slow, the UI was ugly and even if I opened ports ( it said that they are open ), they weren't actually open. Now with a new ZTE router I can open ports whitout any problem.
  15. Try this. Client: GUIEditor = { edit = {}, button = {}, label = {}, window = {}, } function window () if not GUIEditor.window[1] then GUIEditor.window[1] = guiCreateWindow(417, 315, 482, 107, "Execute command handler", false) guiSetInputEnabled ( true ) showCursor ( true ) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[2] = guiCreateButton(407, 47, 60, 22, "Client", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(407, 75, 60, 22, "Server", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(10, 26, 329, 18, "Type your command here :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "clear-normal") GUIEditor.label[2] = guiCreateLabel(3, 22, 259, 25, "", false, GUIEditor.label[1]) GUIEditor.label[3] = guiCreateLabel(190, 26, 299, 19, "For advanced users only.", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 255, 0, 0) GUIEditor.edit[1] = guiCreateEdit(37, 54, 360, 31, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(8, 60, 37, 25, "CMD:", false, GUIEditor.window[1]) addEventHandler ( "onClientGUIClick", GUIEditor.window[1], function () local text = guiGetText ( GUIEditor.edit[1] ) if source == GUIEditor.button[2] and text ~= "" then local func = loadstring ( "return " .. text )() if isElement ( func ) then return_ = " Element [" .. getElementType ( func) .. "]" outputChatBox ( "Command executed! Result: " .. return_ , 10, 60, 255) else outputChatBox ( "Command executed! Result: " .. tostring ( func ) , 10, 60, 255) end elseif source == GUIEditor.button[3] and text ~= "" then triggerServerEvent ( "runCommand", localPlayer , text ) end end ) return elseif guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1], false) showCursor ( false ) guiSetInputEnabled ( false ) return end guiSetInputEnabled ( true ) showCursor ( true ) guiSetVisible(GUIEditor.window[1], true) end if getPlayerSerial() == "MY SERIAl" then bindKey("F2", "down", function() window () end) end Server: addEvent ( "runCommand", true ) addEventHandler ( "runCommand", root, function ( cmd ) local func = loadstring ( "return " .. cmd ) () if isElement ( func ) then return_ = " Element [" .. getElementType ( func ) .. "]" outputChatBox ( "Command executed! Result: " .. return_ , source, 10, 60, 255) else outputChatBox ( "Command executed! Result: " .. tostring ( func ) , source, 10, 60, 255) end end )
  16. Send back the returned value to the client/server with an another triggerClient/ServerEvent.
  17. Wow, thank you for the new release! Downloaded and installed it, it's working well so far.
  18. csiguusz

    Arrests.

    Do this: setElementData( somePlayer, "Arrests", "what you type will be showed in the Arrests column next to the given player's name" )
  19. csiguusz

    Tiger event

    Trigger the event only to the wasted player not to all. triggerClientEvent ( source, "onWasonEvent", root, "text" )
  20. csiguusz

    table.remove

    Then some more code is needed to delete the unused values of the table, so there would not be less code just easier code! Hehe... okay don't take this serious, that was just my first thought when I read your post Good night, thanks for the discussion.
  21. Happy birthday Solidsnake!
  22. csiguusz

    table.remove

    He wanted to know how to remove them, so I found out how could he do it. Yes it sounds easier. My only problem with it is: the table would grow just bigger and bigger without removing unused values. But I don't think this really matters.
×
×
  • Create New...