• 5 questions involving fretta, mysql, and hud.
    7 replies, posted
Question one: Can you make it so at the end of the round, you don't vote for the gamemode and you only vote for the map? Question two: Can you set up a scoring method so when a team gets to a certain amount of enemy kills, the round ends? Question three: Can you use MySQL tables to record kdr and other stats and rank people up in fretta? Question four: How do i use the mw2 killstreaks made by that other guy in a fretta gamemode? From what i know, they only work when you kill npc's? Last question(only if question for is a no): How do i make a hud so when someone gets 3 or 2 kills in a row without dying they get a radar like the COD Series?
This is a Fretta Gamemode, so you can use [lua]function GM:CheckRoundEnd() if ( !GAMEMODE:InRound() ) then return end --Lua code here, check the team's kills, if it's = blah, end the game end[/lua] Which supposedly runs every second. For Q3: You already created another thread about this, an an answer was given. For Q4: You'd have to make a function that tracks every player's kill and 'resets' the player's internally tracked killstreak if they die. Then when they have 3 kills, set a network var/usermessage (?) on the player, and have the hud check if that networkvar/usermessage is true or whatever, and display it on the hud.Then remove it on death. You're going to need to learn a fair amount about Lua to try and implement most of these.
I would suggest you use SQLite unless you know a fair amount about MySQL and already have a MySQL database setup. [b][url=http://wiki.garrysmod.com/?title=LUA:SQLite_Tutorial]SQLite Tutorial[img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
I know how to use MySQL on a website ect but im kinda new to lua
This should really be in requests then instead.
But these are questions..
From what i've read, it seems as if you're lacking the knowledge you need to do it yourself so you're asking others to do it for you.
no im not.. im just asking if its possible... so stop flamin me and go away...
Sorry, you need to Log In to post a reply to this thread.