Jump to content

Gravestone

Members
  • Posts

    467
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Gravestone

  1. As pa3ck said, use 'for' statement for sending each row to the client side. And this, 'client' is a clientsided pre defined variable and I don't anywhere client being defined in your function.
  2. I know but drawing GUI with dx causes lots of custom made functions and since there are GUI functions already, it'd be great if we can replace the gui theme.
  3. For drawing stuff on player join/quit/logout or anything, use the events in combination with dxDrawText and dxDrawImage.
  4. Gravestone

    help

    There is no call911 table.
  5. getElementData(localPlayer, "dataName")
  6. onPlayerJoin and onPlayerQuit are server sided events.
  7. I was wondering if developers add an option to replace gui theme for clients (client sided). Most of the server developers don't like or want their own custom themes to their servers so it'd be good if there's an option through which we can replace the gui theme for client. Maybe guiReplaceTheme or something. It'd be great if I get a reply from the developers!
  8. Please use the code button to enter your LUA codes. For viewing enabling the command only for VIPs you can use check if his account is in VIP acl group (server sided) if it is, then trigger the event and set the gui visible for him.
  9. Gravestone

    /me

    There is already an example for local chat given on onPlayerChat.
  10. What is the table name which stores the timers?
  11. addEventHandler("onPlayerJoin", root, function() local name = getPlayerName(source) local team = getTeamFromName("EnterStaffTeamName") if team then if string.find(name, "RPL|") then setPlayerTeam(source, team) end end end )
  12. UPDATES: - Changed input mode for the gui - Fixed a major bug with the challenge timer ended very fast (Now the timer ends after 45 seconds) - Updated the clan war drawing when there was a war being held Screenshot:
  13. Gravestone

    help

    Try changing the input mode in admin resource to "no_binds_when_editing".
  14. Gravestone

    /me

    That is an MTA Client command. You can try this: addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "me" then cancelEvent(true) outputChatBox() -- enter the format of the text you want it to be like end end )
  15. I hope this works for you. function handlerTable(theTable) local theTable = Mother:new(); outputDebugString(tostring(theTable:getProperty("type"))); -- attempt to call method :getProperty (a nil value) end addEventHandler("onClientHandlerEvent", root, handlerTable);
  16. Gravestone

    Help

    Is the timer supposed to be for everyone or does it trigger for every player?
  17. Thanks. UPDATES: - Changed colors and output format for the messages which were sent on challenge sent/challenge accepted/war ended - Fixed a bug where the location didn't show for the challenged team members - Fixed a bug where the location data wasn't removed when the war had ended Link updated.
  18. As mentioned by Ransom, your scripts are your responsibilities. Try 'cache' attribute in meta.xml to help protect your client files, however these files still be stolen by someone with high knowledge about networking. 80% of the servers do save their files by this method. There are other methods to, try searching in the forums.
  19. Oh, my bad. Sorry @MasterMind200.
  20. Gravestone

    Support

    Maybe add this? for i, player in ipairs(getElementsByType("player") do if getElementData(player, "NukePlayer") then -- code here end end
  21. Gravestone

    Punishment

    Find the script in which the action of muting the player is coded. There, add an output to the chatbox once muted and remove the above code ^ from messages.xml.
  22. Any how, you can not edit compiled client files.
×
×
  • Create New...