Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. string.gsub(What-String?, "#%x%x%x%x%x%x", "") This removes the hex-colors.
  2. Reshow your script for just in case.
  3. Because of what I said the first time. getTeamColor returns 3 integers. Red, Green and Blue. So, since you are only putting one variable there, it only gets red.
  4. Wow, I must be asleep. dxDrawText( playerTeamName, x1, y1, x1, y1, tocolor(playerTeamColor), 0.85 + ( 15 - dist ) * 0.02, "default-bold" )
  5. local R, G, B = getTeamColor(playerTeam) getTeamColor returns 3 ints: Red, Green and Blue.
  6. setTimer(function() addEventHandler("onClientMarkerHit", marker, showJobWindow) end, 5000, 1) What about that?
  7. What is pedID? Is it defined before sending it to serverside?
  8. Well then, no need to be like that lol.
  9. Is function.addaccount given to the resource?
  10. If you start with triggeren at serverside immediately when the resource starts, don't do that. Let the client trigger to the server and then back.
  11. Add @ACL in moderator group: command.redo/random/nextmap
  12. onPlayerCommand Which this you can check which command has been used.
  13. Et-win

    DX.GUI

    Woops, I thought it was GUIEditor. I'm sorry x3
  14. Et-win

    DX.GUI

    1. Is it running and 2. Otherwise @other people react/Contact owner.
  15. It's called "The Sims DGT" so I guess for DGT clan server only.
  16. With the userdata you can do things with other codes. Like getResourceName, getPlayerName, getTeamName, etc, etc. I don't really know how to explain that properly, but lets just say you can do something with it :3
  17. Et-win

    DX.GUI

    Only those who are lazy in my opinion. I just script it by myself, because if you want to move something, it's the best with changing just 1 variable and everything goes with.
  18. /request to delete all messages which have nothing to do with this topic @ Admins. Thanks
  19. Et-win

    DX.GUI

    F5 I believe, but not sure. Otherwise try all F keys. By the way: Improving GUI learning is not using a system. GUI learning is scripting it by yourself.
  20. Reset your binds. Then go to the list and write everything down on something. Just make your own list with default functions to bind. The only problem would be if something changes, you have to change it too.
  21. triggerServerEvent ( "buym4", getLocalPlayer(), "buym4" ) You are sending '"buyme4"' withing the trigger (Last argument) and I left it there just incase you need it for further scripting. This is why I changed 'player' to 'toBuy' but 'toBuy' can be somethings else random too. If not needed, you can remove it.
  22. function buym4 (toBuy) local money = getPlayerMoney(source) local m4money = 2000 if ( money >= m4money ) then giveWeapon ( source, 31, m4ammo, true) else outputChatBox ("You havent got enough money to buy this!", source) end end addEvent("buym4",true) addEventHandler("buym4",getRootElement(),buym4) -- Steps: -- Give weps with command |Done -- Take money while giving weps with command |Done -- Establish connections between your client sided script and server sided script. |Done -- Make a simple button and sell weps from that button when it get clicked | Having errors -- Make a simple gui window and add all neccesary weps. | Not Finished -- Make a marker and set visible the GUI when the player hits to that marker | Not Finished function buym4 () triggerServerEvent ( "buym4", getLocalPlayer(), "buym4" ) end addEventHandler ( "onClientGUIClick", M4.button, buym4, false ) Please try to understand what I did.
  23. Can't explain it better than Dealman. Anyway, after some thinking: Maybe you are right and it does matter. I guess I just can't face the truth.
  24. Since some people are wondering and have been PM'ing me about helping with this system or wanting to know how the system is doing at the moment. So just an update: At the moment the scoreboard has been finished just like the Management Panel. (Score, Maps, Players/Teams, Updater and About) I'm making a language system. This is Dutch and will be translated to correctly English when the whole system is done. The Options/Settings Panel still have to be created. Clan War System does at this moment only support the RACE gamemode. Currently there are no DX skins, only GUI is supported, which also will be updated in next versions. More to come in the future before releasing, otherwise by updating this system which will going to happen. Idea's welcome of course. Hoping to release it in 2~3 weeks.
  25. I'm sorry. I made up out of the texts that he wanted to take a random player in client-side script.
×
×
  • Create New...