Jump to content

5 Screenshots

About This File

Features overview

  • Account system with timed bans
  • A simple admin system
  • Spawn protection (optional)
  • Weapon shops and garages
  • Crouching
  • Killstreaks
  • Different firing modes (single, burst, auto, safe mode)
  • Turf capturing

 

Getting started

  1. Put the files in their respective places
  2. Go to packages/thewire/config.json and write your database information
  3. Import the database.sql file using phpMyAdmin and such
  4. Start your server, should be done

 

Making yourself admin

  1. Make an account
  2. Go to accounts table and set Admin field's value to 1 OR run a query to do it: UPDATE accounts SET Admin=1 WHERE Username='YourAccountName'
  3. Save and login ingame

 

Team management

  1. Go to packages/thewire/data/teamData.json, teams are stored in this file as key:value
  2. For ColorName and ColorHex, check WIKI: Fonts and Colors
  3. For VehicleColor, check WIKI: Vehicle Colors
  4. For BlipColor, check WIKI: Blips
  5. If you remove a key:value pair, you'll remove that team
  6. Save file & restart the server

 

Adding/removing vehicles

  1. Go to packages/thewire/data/teamData.json, vehicles are connected to teams
  2. Add your vehicle model name (e.g zentorno) to the Vehicles array of the team(s) you want
  3. Go to packages/thewire/data/vehiclePrices.json
  4. Add your vehicle model name and price. (e.g "zentorno": 10000)
  5. Save files & restart the server

 

Adding/removing weapons

  1. Go to packages/thewire/data/weaponPrices.json
  2. Make sure the weapon you want to add is valid! See WIKI: Weapons
  3. Add your weapon name and price. (e.g "WEAPON_PISTOL50": 900)
  4. Save file
  5. Go to client_packages/cef/weaponIcons
  6. Add your weapon icon with the file name being your weapon hash (not the name!)
  7. Restart the server

 

Config.json

This file is located in packages/thewire/ and lets you control a lot of things.

database: Write your database information here.

dbLogging: Lets you control which parts of logging is enabled. A lot of stuff are being logged by default.

loginDimension: The dimension joined players get sent to. (Default: -1)

startingMoney: The amount of money registered players get. (Default: 1500)

spawnProtectionSeconds: Duration of the spawn protection, in seconds. (Default: 5)

accountSaveInterval: Interval of the auto save to prevent stat loss, in minutes. (Default: 10)

killRewardMin and killRewardMax: The amount of money players get for killing an enemy. (Default: 100 and 200)

teamKillPenalty: The amount of money loss players get for team killing. (Default: 1000)

killstreakReward: The base amount of money a player gets for a 5+ killstreak. Killstreak reward is calculated as: killstreakCount * reward on every factor of 5. (Default: 100)

weaponShopMagCount: How many magazines a player gets when they buy a weapon. (Default: 6)

playerVehicleSpawnLimit: How many vehicles a player can have spawned at once. (Default: 5)

turfCaptureMaxProgressIncreaseTurf attack progress cap. People more than this amount isn't required in the checkpoint. (Default: 5)

turfCaptureRequiredProgress: Required progress to capture a turf. (Default: 50)

turfIncomeIntervalInterval of the turf income sharing between team members, in minutes. (Default: 15)

bcryptCost: Read this (Default: 10)

spawnWeapons: Weapons and ammo the players get when they spawn. This applies to all teams. (Default: Bat and Pistol with 240 ammo)

world: World settings, there is actually a time system but it doesn't show itself until a few hours pass. (Default: CLEAR weather and 10:00:00)

log4js: Logger settings, you don't really need to touch this.

 

Turfs

Teams can capture turfs in this gamemode and make money.

All you need to do is stand in a turf checkpoint, wait until the progress reaches 100% (it will be captured faster if there are teammates with you, up to 5 players)

Though doing that will alert the turf's current owners. If the owners manage to clear the turf before it is captured, they'll keep it.

Turf income happens every 15 minutes which just sums all of your team's turf income and shares it between team members.

 

Admin Commands

/tp [x] [y] [z] - Lets you teleport to a position.

/agivemoney [player ID] [amount] - Gives money to a player.

/agiveweapon [player ID] [weapon name] [ammo] - Gives weapons to a player.

/kick [player ID] [reason] - Kicks a player.

/banplayer [player ID] [days] [reason] - Bans a player.

/banaccount [account ID] [days] [reason] - Bans an account, best used for banning players that are offline.

/baninfo [ban ID] - Returns information about a ban.

/removeban [ban ID] - Removes a ban.

/createweaponshop - Creates a weapon shop on your position.

/removeweaponshop [ID] - Removes a weapon shop.

/creategarage - Creates a garage on your position.

/removegarage [ID] - Removes a garage.

/createturf [income] [radius] [name] - Creates a turf on your position. Radius isn't used right now but it will be in 0.4.

/removeturf [ID] - Removes a turf.

 

Player Commands

/pm [player ID] [message] - Sends a private message to a player.

/stats [player ID] - Shows the stats of a player. (Kills, deaths, K/D ratio, money, register date)

/givemoney [player ID] [amount] - Sends money from your account to another player's account.

/top5 [ranking] - Shows the top 5 online players of a ranking. (Available rankings: kills, money)

 

If you encounter a bug, feel free to leave it as a comment.

Hopefully all this text is enough, have fun and see you on the battlefield!


What's New in Version 1.0.2   See changelog

Released

Replaced entityDataChange with addEventHandler.

  • Like 11

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

ragempdev

   3 of 3 members found this review helpful 3 / 3 members

approved

 

pretty depth stuff

  • Like 1
n0minal

   5 of 6 members found this review helpful 5 / 6 members

Awesome like every resource from you. 

  • Like 1
JamesBeast

   4 of 5 members found this review helpful 4 / 5 members

c# version when?

  • Like 2
hubba

   4 of 5 members found this review helpful 4 / 5 members

you better dont war my gang

MrPancakers

   3 of 4 members found this review helpful 3 / 4 members

One of the best put together game modes currently on here. Awesome

  • Like 1
  • Mask 1
GingerJM

· Edited by GingerJM

   1 of 6 members found this review helpful 1 / 6 members

When I enter to my server, it Send me this error message:

 

spacer.png

 

what can I do or where do I have to modify to solve it?

The problem is Solved.

Thank you

  • Mask 1
xiaohao

   0 of 1 member found this review helpful 0 / 1 member

My database is connected, registration can automatically log in, but the password displayed in the database is disordered and does not match the registered password, and then re-enter the game to choose to log in, enter the account password, click log in, there is no response, the button turns gray, what should I do?😔

Danieltfg

   0 of 1 member found this review helpful 0 / 1 member

Hello could help me how to create a table with the respective codes in the phpadmin

 

Negan

   0 of 1 member found this review helpful 0 / 1 member

FANTASTIC!

but how can i add a command that can you change the team in game? because if i want change team i must close all.

maison20_a

· Edited by maison20_a

   0 of 2 members found this review helpful 0 / 2 members

Broken database i cant Import the database.sql  

SQL-запрос:

--
-- Database: `this_does_not_matter_just_import_it`
--
-- --------------------------------------------------------
--
-- Table structure for table `accounts`
--
CREATE TABLE  `accounts` (

 `ID` INT( 10 ) UNSIGNED NOT NULL ,
 `Username` VARCHAR( 32 ) NOT NULL ,
 `Password` VARCHAR( 64 ) NOT NULL ,
 `Admin` TINYINT( 1 ) NOT NULL DEFAULT  '0',
 `Money` INT( 11 ) NOT NULL ,
 `Kills` INT( 11 ) NOT NULL DEFAULT  '0',
 `Deaths` INT( 11 ) NOT NULL DEFAULT  '0',
 `RegisterDate` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE = INNODB DEFAULT CHARSET = utf8;

Ответ MySQL: Документация

#1067 - Invalid default value for 'RegisterDate'

 

timmyturner1

   0 of 1 member found this review helpful 0 / 1 member

the client_pakages dosent load when I join

linglingthething

   0 of 1 member found this review helpful 0 / 1 member

I Think the car spawn is broken. I didnt changed anything but if i buy a car i fell under the map and spawn with it somewhere in Los Santos + a error that tells expected number. Can you help me out ? 

Fusion99

   0 of 1 member found this review helpful 0 / 1 member

Awsome full

skysv

  

hi, i have this problem UZ2JJ9P.png

GnobsalgTV

  

did everything like descriped, but i get client crashes right after finishing handshake, any solutions on that issue ? 

Intellium

  

hey wanted to ask how I can change the server version I have installed your gangwar script and so on but when I want to connect to it it shows me version mismatch can you help me?

Fabio132

· Edited by Fabio132

  

.

Schl8chter

  

Radius is possible. You have to define the Radius per radius, not Static at 4.0

Leksei

  

Hello,

Can you help me, I have a problem concerning the database to integrate in phpMyAdmin, I use mysql as a database server

Can you help me ?

http://prntscr.com/m9ji28

 

 

×
×
  • Create New...