• Flood Mod 2.0 [Re-Scripted]
    102 replies, posted
Even if there are 3 people in the server, it's still saying "not enough players". I've set up all the mysql stuff and uploaded as OP said.
[QUOTE=Macaulay;23586412]In this one do you keep your weapons when you leave?[/QUOTE] Yes. [QUOTE=krabazoid;23589471]It would be nice if you could choose between saving in a database or using old method in saving as text files,this is because it would be nice to somehow be able to use saved player stats and cash logs from old floodmod to this one.[/QUOTE] I will make it so you can choose between saving in files and saving in a database when I have time. As well as have old flood mod information from version one be moved over to this new one instead of being reset. [QUOTE=CortexMaster;23593109]Wow! This mod is great! I love it when your at like the peak where you have to try to find a high area and its like, "holy crap I didn't think water could go this high!" Oh, and hello, I'm new here.[/QUOTE] Thank you. [QUOTE=Matdragon;23597388]hi, This script is good and I've added some weapons but for some reason or another I can't get the M16 (M4A1) to work. I've made the weapons save row in the database able to hold more characters to allow for the extra weapons, and all of the one's I've added work perfectly apart from the M4A1 which i added exactly the same :S I just get "failed to load entity weapon_m4a1" in console. Also is there a way to add recoil to the guns? The actual gun doesn't seem to recoil, but the bullet spread still goes up like it should. Either that or my client side is broken. None the less i like the way this saves to a database rather than files, much better. Regards, Matt[/QUOTE] The gun not being able to spawn means there's something wrong with it. If you are getting the error failed to load then you either spelled the weapon name wrong or there is something wrong with the weapon. [QUOTE=Albystro;23600139]Even if there are 3 people in the server, it's still saying "not enough players". I've set up all the mysql stuff and uploaded as OP said.[/QUOTE] Database failed or you did not set it up correctly. Check the console and it will tell you in red if the database could not connect or what happened.
Hi there, Thanks for the response. I've tried weapon_m16 weapon_m4a1 weapon_M4A1 and none seem to work :S I also tried adding the USP just to see if it would work and no joy, however the mac10, ak and mp5 all seem to work.. Here's what i have in the shared file for the m4a1: [code]WeaponList[9] = { Model = "models/weapons/w_rif_m4a1.mdl", Weapon = "weapon_m4a1", Name = "M4A1", Damage = 5, Cost = 20000, Ammo = 250, AmmoR = 30, AmmoType = "SMG1", Tip = "An automatic weapon with high damage and great accuracy." }[/code] thanks again, Matt
[QUOTE=Matdragon;23601136]Hi there, Thanks for the response. I've tried weapon_m16 weapon_m4a1 weapon_M4A1 and none seem to work :S I also tried adding the USP just to see if it would work and no joy, however the mac10, ak and mp5 all seem to work.. Here's what i have in the shared file for the m4a1: [code]WeaponList[9] = { Model = "models/weapons/w_rif_m4a1.mdl", Weapon = "weapon_m4a1", Name = "M4A1", Damage = 5, Cost = 20000, Ammo = 250, AmmoR = 30, AmmoType = "SMG1", Tip = "An automatic weapon with high damage and great accuracy." }[/code] thanks again, Matt[/QUOTE] Try this: Weapon = "weapon_M4A1" If it doesn't work something is wrong with the weapon you are trying to give the player or it does not exist on your server.
Will do thankyou. Where does the script pull the weapon scripts from ? I had assumes it's "orangebox/cstrike/scripts/weapon_whatever.ctx" but i can't find "weapon_mp5" in that folder, yet I'm using that for the mp5 and it works :S Edit: Unfortunately weapon_M4A1 give the same error (about tried to use a non existent entity or something)
How do I put the .dlls on my server? Filezilla doesn't allow it and Xenon TCAdmin doesn't either...
To install gm_tmysql2 on Xenon servers, do this: 1. Access your control panel at [url]http://cp.xenonservers.com/[/url] 2. Log in 3. Select 'Game servers', then the server you want to install it on 4. Select Mod installer 5. In the dropdown box, select "Modules - gm_tmysql2" 6. click install 7. done
Ok, I got that but it still doesn't seem to be working.
What makes you say that? Would be nice to have something to go on - such as an error.
It's weapon_m4
Still no luck for me. No console errors whatsoever, the sql database and the init.lua are edited correctly. Yet it keeps saying "not enough players"
[QUOTE=Albystro;23610740]Still no luck for me. No console errors whatsoever, the sql database and the init.lua are edited correctly. Yet it keeps saying "not enough players"[/QUOTE] Has something to do with your database. Clear everything inside it, make sure the columns are named right(capitalization) and make sure your database info is 100% correct.
[QUOTE=find me;23550019]The hud is basically the same just better aligned and such, performs better for the client as well. I have no creativity when it comes to visual stuff really.[/QUOTE] I'll edit it myself and see what I can come up with then.
I've took some screenshots. [IMG]http://img201.imageshack.us/img201/8615/db1x.png[/IMG] [IMG]http://img820.imageshack.us/img820/3039/db2e.png[/IMG] And yes, i've choose the "primary" and "unique" things when i created the table. [IMG]http://img192.imageshack.us/img192/8708/init.png[/IMG] About the quotation marks, i've tried both with and without them. Since i can't do lua, do i have to keep them or remove them? Also, i've correctly installed the modules.
[QUOTE=Albystro;23611871]I've took some screenshots. [IMG]http://img201.imageshack.us/img201/8615/db1x.png[/IMG] [IMG]http://img820.imageshack.us/img820/3039/db2e.png[/IMG] And yes, i've choose the "primary" and "unique" things when i created the table. [IMG]http://img192.imageshack.us/img192/8708/init.png[/IMG] About the quotation marks, i've tried both with and without them. Since i can't do lua, do i have to keep them or remove them? Also, i've correctly installed the modules.[/QUOTE] You keep the quotation marks, try setting the host without the "http://" Also I recommend you change your password if you have not already as it is now posted on facepunch.
[QUOTE=find me;23611994]You keep the quotation marks, try setting the host without the "http://" Also I recommend you change your password if you have not already as it is now posted on facepunch.[/QUOTE] Don't worry, it's a temp password i've put on. EDIT: Works now, i removed the HTTP:// part You may want to "fix" it in the tutorial pics to prevent n00bs like me to get stuck on that :buddy:
[QUOTE=CombineGuru;23604606]It's weapon_m4[/QUOTE] I'll try that out, Thank you. EDIT: That worked, thank you very much. Shame that the script has the gun named m16 tho. Now.. is their any way to add visual recoil to the weapons? As i said before, the bullet spread goes up, but the guns don't ? or is that just me ?
Ok, I have one question about the database. Why didnt you use gm_sqlite?
[QUOTE=Map in a box;23634804]Ok, I have one question about the database. Why didnt you use gm_sqlite?[/QUOTE] Because SQLite is horrible compared to MySQL.
[QUOTE=Albystro;23612009]Don't worry, it's a temp password i've put on. EDIT: Works now, i removed the HTTP:// part You may want to "fix" it in the tutorial pics to prevent n00bs like me to get stuck on that :buddy:[/QUOTE] THANK YOU SO MUCH! I removed the http:// part, so now my Flood server should work yay! :fuckyou: Edit: Why is FM 2.0 derived from sandbox? Edit: Nvm, I just remembered that gmod_tool is part of sandbox and Flood needs it.
I have installed everything edited the init.lua file, I have uploaded the flood folder to gametype folder on my server and it is show when I can change gamemode to flood but when I set it to flood mod it doesn't actually change anything. The only files I have uploaded are "Flood" to gamemodes, the 2 .dlls to the corrisponding following folders ( /garrysmod/ and /lua/ect/ect ). What am I doing wrong, if you need more information I will try to explain more, this is my first attempt to make a gamemode on my server. EDIT: Flood 2.0 works but 2.1 does not.
[QUOTE=Albystro;23612009]Don't worry, it's a temp password i've put on. EDIT: Works now, i removed the HTTP:// part You may want to "fix" it in the tutorial pics to prevent n00bs like me to get stuck on that :buddy:[/QUOTE] Alright, I didn't even notice I had that in there at first, fixed. [QUOTE] [QUOTE=Map in a box;23634804]Ok, I have one question about the database. Why didnt you use gm_sqlite?[/QUOTE] [QUOTE=Helix Alioth;23640438]Because SQLite is horrible compared to MySQL.[/QUOTE] [/QUOTE] [QUOTE=johnson_1;23644384]I have installed everything edited the init.lua file, I have uploaded the flood folder to gametype folder on my server and it is show when I can change gamemode to flood but when I set it to flood mod it doesn't actually change anything. The only files I have uploaded are "Flood" to gamemodes, the 2 .dlls to the corrisponding following folders ( /garrysmod/ and /lua/ect/ect ). What am I doing wrong, if you need more information I will try to explain more, this is my first attempt to make a gamemode on my server. EDIT: Flood 2.0 works but 2.1 does not.[/QUOTE] Make sure you completely remove the first copy of flood before downloading the second.
[QUOTE=find me;23652522]Make sure you completely remove the first copy of flood before downloading the second.[/QUOTE] It was a completly new server which I have only just bought the day of installation of your files. I installed 2.01 it did not work, so I deleted the Flood gamemode server with the 2.01 files installed that then put on 2.00 and it just says that I am waiting for more players to start the server, I have checked out SQL to see if they were any errors and my SQL should be working fine I have correct capitals in the right places and so on. I have also installed my friends Flood Mod and it worked fine so I can't see why yours will not work. Maybe you could help me over TeamViewer sometime as I have checked every error other people have reported in the thread and I just don't understand why in 2.01 the gasmemode doesn't apply or why in 2.00 it still waits for more players even after I had 5 players on the server. ~Johnson.
Do i need to use one of these free sites? or is it possible my server host owns something like this? ( [url]www.serverffs.com[/url] )
Find me is not cool for using gm_tmysql2.dll SOMETHING NON COMPATIBLE WITH LINUX!
[QUOTE=doonbugie2;23682282]Find me is not cool for using gm_tmysql2.dll SOMETHING NON COMPATIBLE WITH LINUX![/QUOTE] Linux sucks. And I derived it from sandbox so I had all the tool sounds and stuff. I was too lazy at the time to hunt down all the sound and effect files needed and put them in the download.
I tried it on my box the tools didn't work on it.
How would I give my clients cash?
[QUOTE=jcspears2014;23722865]How would I give my clients cash?[/QUOTE] Serverside: [lua] EditCash(Player, Amount) EditCash(pl, 1000) --This will give the player $1000 EditCash(pl, -1000) --This will take $1000 from the player [/lua]
WE're having a problem where the water just refuses to start and the game just gets stuck on "get on your boat" this seems to happen at random also, is there anyway to implement teams or a pirate system? we're having problems with people just jumping onto other peoples boats, sinking them then getting back on their own
Sorry, you need to Log In to post a reply to this thread.