[Release][C#][NOT WORKING] Military Team DeathMatch Mode

CURRENTLY NOT WORKING . if you want to make it work you have to add a delay for each tick that is sending Data with event . currently i dont have time to spend on this project. dont try to run this !
Im Currently Working on a rewrite of a mode like this in ESX
Hello Fellow Devs. Here is My First release on this forum.
This Gamemode Has 2 team . Russia and USA
Each Team has it own Advantage for example USA has Radar System . Russia doesn’t have ground vehicles
each team has 6 Divisions and each division is different :smiley:
Commandos : (Every Commando has access to parachute and grenade)

    1. Commando Rifle : Special Carbine + Combat Pistol
    1. Commando Artilerry : RPG (Homing launcher for USA) - Mini SMG - Proximity Mines
    1. Commando Shotgun : Shotgun - Machine Pistol
    1. Commando Sniper : MarksMan Sniper - Combat Pistol
      Drivers :
    1. Ground Pilot : Combat Pistol ( Can Spawn Ground Vehicles And Ride them )
    1. Aircraft Pilot : Combat Pistol ( Can spawn Aircrafts and Airplanes)

Current Game System Is very basic and i didn’t spend too much time on it , Its basic Capture and hold . There is a Blip on map that shows the capture point and Teams Current point is shown on top left of the screen . Black rectangle shows the current status of capture point. If usa is capturing Black box color will be blue and blip color will also be blue , and if russia is doing that colors will be red


Current Script List and Features that they add into game :

    1. Blips : Add Teammates Blips for player (Not fully tested yet)
    1. CapturePoints : Very Basic Gamemode Capture and Hold
    1. DriversOnly : Prevent players to Ride Vehicles if they are not in the correct division.
    1. Enviroment : Freeze time and keep it at night and blackout the the capture point.
    1. RadarSystem : Add Radar Feature to Detect airplane if player is in the “Brickade” car and Ground Pilot
    1. Recoil : Force Player to First Person for Shooting And Add A Simple recoil mechanism To Gun Fights
    1. RussiaBase : Adds Russia Blips and Markers
    1. SupplySystem : Players Can Reload ammo When They are near Brickade (if they are playing as usa) or Cargobob ( if they are playing as russia )
    1. USaBase : Adds Usa Blips And Markers
    1. Whitelist : its not whitelisting the server its just Creating a row for new players in database and ask them which team they want to join when they join to the server for the first time.
    1. ProgressBar : Not my Script . Link to Creator : [RELEASE] Progress Bars 1.0 [STANDALONE]
    1. MenuApi : Menu Ui used for Scripts . Link to Creator : GitHub - TomGrobbe/MenuAPI: FiveM C# Menu API. Designed specifically as a replacement of NativeUI for vMenu. Full safezone scaling supported, both left and right aligned menus supported.
    1. Compass : Add Pubg Style Compass to Screen . Link to Creator : [Release] Compass and street name HUD

So i think you are asking now what about a database ? yeah you cant make a gamemode without database you are totally right . Database is a txt file And you have to name it like this and put it in server folder not Resource folder “WhiteList.txt”
Database Columns : SteamHex,SteamName,Team,Division,TemporaryServerID


Download Link: GitHub - Reza-CyBer44/CSharp-FiveM-Military-Deathmatch: FiveM C# Military Deathmatch With 2 Teams (Russia|USA) And Basic Setup For Playing and Point System
Setup Instruction :
There is source for each script that i have made in Github but if you want to setup it the correct way i highly recommend you to Download the Compiled.rar and extract it in Script folder And add this to your server.cfg :
#adds A pubg like compass to screen
ensure Compass
#Gamemode: Capture Point Base
ensure PointSystem
#Supply System Ammo
ensure SupplySystem
radar System FOr Brickade
ensure radarsystem
add Team Blips
ensure blips
#Progress Bar
ensure progressBars
# Vmenu
ensure vMenu
# Hide EveryPed
ensure hidepeds
whitelist
ensure whitelist
usa TEam Markers And Blips And Menus
ensure usa
#Russia Team Markers And Blips And Menu
ensure russia
weather
ensure Weather
#Doesnt Let client To Fly/Move With Vehicle That he shouldnt move with
ensure DriversOnly
#Force First Person And Add Recoil System And Hide Aim dot
ensure FirstPerson
#Russian Peds
ensure russiapeds
usa Peds
ensure usapeds
#Russian Base
ensure russiabase
#Compiled version has Custom Peds Installed and Custom Base For Russia.


Coding Is Very Very basic and im not a pro in c# but i like it and i enjoy coding with this language.


Things i have plan to do :smiley:
1.Add Another 3 Divisions :
#Ground Squad Commander
#Aircraft Squad Commander
#General
2.Add Better Point System For This Gamemode
3. Make A Zombie Survival Gamemode(Not related to this gamemode)


Ways You can Help This Project :slightly_smiling_face:
Write your ideas That can improve this gamemode for me.
if you encounter a bug tell me about it so i can fix it.
if you added your own script to it to improve it send it to me so i can post it here for others with your credit


My Coding is very basic and There is alot of things that i can improve and optimize in my scripts but i want to add features and improve the gameplay right now


LINK TO THE REWRITE IN LUA


Note: Do NOT Re-Relase without my premission

17 Likes

would have been nice to leave screenshots!

1 Like

There isn’t so much thing to show with screenshot, this gamemode is very basic its just bunch of markers and blips

2 Likes

Will this project be updated in the future?

Im Currently Busy Developing other Stuff and Learning lua. currently i don’t have time to work on this project but soon i will Release an update for it.

Why do you have nothing in the game?

By the way, how to create a new database? Is it like a pictureQQ浏览器截图20200606125210

QQ浏览器截图20200606125143

Its a row and Don’t put steamhex steam name team division and server id in WhiteList.txt,
it should look like this

110000116a7e***,Reza Cyber,0,5,

What do you mean “Nothing in the game” Its simple there is 2 base one for usa one for russia and each one has different spawners to use. Use Compiled.rar file in the github for using this script

what is steamhex how can i get it?

Just Join Run The Server With Compiled.rar And Join the server . You will have your Steam hex in WhiteList.txt
DONT WRITE ANYTHING in whitelist.txt

ok,i known. thank you for your help.
and what is
Database Columns : SteamHex,SteamName,Team,Division,TemporaryServerID

mean?

it means when you look at database its like this
each row is like this
First Steamhex, second Theyr Steam name , Third theyr team , Fourth division , and last Is Temp server id for some scripts to use

Well I still don’t understand. Can I send the whole server file to me for reference? Including all contents in the server folder. My email is 2563411574@qq.com Thank you very much.

In The Github Link Use
Compiled.rar
its Full Server File|
Just Copy it In Your Server Folder

  1. Download Compiled.rar
  2. Copy the following to server.cfg
    #adds A pubg like compass to screen
    ensure Compass
    #Gamemode: Capture Point Base
    ensure PointSystem
    #Supply System Ammo
    ensure SupplySystem
    radar System FOr Brickade
    ensure radarsystem
    add Team Blips
    ensure blips
    #Progress Bar
    ensure progressBars

Vmenu

ensure vMenu

Hide EveryPed

ensure hidepeds
whitelist
ensure whitelist
usa TEam Markers And Blips And Menus
ensure usa
#Russia Team Markers And Blips And Menu
ensure russia
weather
ensure Weather
#Doesnt Let client To Fly/Move With Vehicle That he shouldnt move with
ensure DriversOnly
#Force First Person And Add Recoil System And Hide Aim dot
ensure FirstPerson
#Russian Peds
ensure russiapeds
usa Peds
ensure usapeds
#Russian Base
ensure russiabase
#Compiled version has Custom Peds Installed and Custom Base For Russia.

Like a picture?

After that WhiteList.txt Copy to server\server-data (and server.cfg In the same level directory)

Is that so?I’m a little stupid…

Why didn’t I choose the team when I entered the game? By the way, is there a BOT in this game? Can we fight with BOT?


I need help, I will be on this screen after I select the team

After few seconds from join, please Help

Log Console

Failed to run a tick for Server: System.IO.FileNotFoundException: Could not find file “/home/srv807366/.\WhiteList.txt”
File name: ‘/home/srv807366/.\WhiteList.txt’
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream…ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader…ctor(string)
at System.IO.File.OpenText (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.File.ReadAllLines (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at WhiteList.Server.net.Server.CheckPlayerTeam () [0x00013] in <8a23ef4273c845cc87511964d6fbd1ea>:0

Failed to run a tick for Server: System.IO.FileNotFoundException: Could not find file “/home/srv807366/.\WhiteList.txt”
File name: ‘/home/srv807366/.\WhiteList.txt’
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream…ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader…ctor(string)
at System.IO.File.OpenText (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.File.ReadAllLines (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at Blips.Server.net.Server.SendDataList () [0x0001d] in :0

Failed to run a tick for Server: System.IO.FileNotFoundException: Could not find file “/home/srv807366/.\WhiteList.txt”
File name: ‘/home/srv807366/.\WhiteList.txt’
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream…ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader…ctor(string)
at System.IO.File.OpenText (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.File.ReadAllLines (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at WhiteList.Server.net.Server.CheckPlayerTeam () [0x00013] in <8a23ef4273c845cc87511964d6fbd1ea>:0

Failed to run a tick for Server: System.IO.FileNotFoundException: Could not find file “/home/srv807366/.\WhiteList.txt”
File name: ‘/home/srv807366/.\WhiteList.txt’
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream…ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader…ctor(string)
at System.IO.File.OpenText (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.File.ReadAllLines (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at Blips.Server.net.Server.SendDataList () [0x0001d] in :0

Failed to run a tick for Server: System.IO.FileNotFoundException: Could not find file “/home/srv807366/.\WhiteList.txt”
File name: ‘/home/srv807366/.\WhiteList.txt’
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.FileStream…ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream…ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.StreamReader…ctor (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader…ctor(string)
at System.IO.File.OpenText (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at System.IO.File.ReadAllLines (System.String path) [0x00000] in <4fffd39960df419684f9b9cb5ce46688>:0
at WhiteList.Server.net.Server.CheckPlayerTeam () [0x00013] in <8a23ef4273c845cc87511964d6fbd1ea>:0

WhiteList is in folder with resources folder

Make a Folder with name “.” and move WhiteList.txt to there.
Or Edit all Reosurces that has “.//WhiteLst.txt” to “./WhiteList.txt” and compile them again. First option is easier

Look At My Reply To _lit