mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-24 20:26:50 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9f7db5171 | ||
|
|
648b928b4e | ||
|
|
530a7d64c7 |
@@ -11,7 +11,7 @@ There will be a lot of frequent changes which may break functionality or compati
|
|||||||
|
|
||||||
### Features
|
### Features
|
||||||
- changes only paint, seed and wear on weapons and knives
|
- changes only paint, seed and wear on weapons and knives
|
||||||
- mysql based
|
- mysql based or global website at [weaponpaints.fun](https://weaponpaints.fun/), so you dont need mysql/website
|
||||||
- data sync on player connect
|
- data sync on player connect
|
||||||
- Added command `!wp` to refresh skins (with cooldown in second can be configured)
|
- Added command `!wp` to refresh skins (with cooldown in second can be configured)
|
||||||
- Added command `!ws` to show website
|
- Added command `!ws` to show website
|
||||||
@@ -20,10 +20,12 @@ There will be a lot of frequent changes which may break functionality or compati
|
|||||||
|
|
||||||
### CS2 server:
|
### CS2 server:
|
||||||
- compile and copy plugin to plugins. Info here [https://docs.cssharp.dev/guides/hello-world-plugin/](https://docs.cssharp.dev/guides/hello-world-plugin/)
|
- compile and copy plugin to plugins. Info here [https://docs.cssharp.dev/guides/hello-world-plugin/](https://docs.cssharp.dev/guides/hello-world-plugin/)
|
||||||
- setup `addons/counterstrikesharp/configs/plugins/WeaponPaints/WeaponPaints.json` with database credentials
|
- setup `addons/counterstrikesharp/configs/plugins/WeaponPaints/WeaponPaints.json`
|
||||||
|
set `GlobalShare` to true for gloval, or include database credentials
|
||||||
- in `addons/counterstrikesharp/configs/core.json` set **FollowCS2ServerGuidelines** to **false**
|
- in `addons/counterstrikesharp/configs/core.json` set **FollowCS2ServerGuidelines** to **false**
|
||||||
|
|
||||||
### Web install:
|
### Web install:
|
||||||
|
- not needed if config `GlobalShare = true`
|
||||||
- requires PHP min v7.3 (tested on php ver `8.2.3` and nginx webserver)
|
- requires PHP min v7.3 (tested on php ver `8.2.3` and nginx webserver)
|
||||||
- copy website to web server (img folder not needed)
|
- copy website to web server (img folder not needed)
|
||||||
- import `database.sql` to mysql
|
- import `database.sql` to mysql
|
||||||
@@ -31,6 +33,9 @@ There will be a lot of frequent changes which may break functionality or compati
|
|||||||
- fill in database credentials and api key in `class/config.php`
|
- fill in database credentials and api key in `class/config.php`
|
||||||
- visit website and login via steam
|
- visit website and login via steam
|
||||||
|
|
||||||
|
### Known issues
|
||||||
|
- Issue on Windows servers, no knives are given.
|
||||||
|
|
||||||
### Use this plugin at your own risk! Using this may lead to GSLT ban or something else Valve come with. [Valve Server guidelines](https://blog.counter-strike.net/index.php/server_guidelines/)
|
### Use this plugin at your own risk! Using this may lead to GSLT ban or something else Valve come with. [Valve Server guidelines](https://blog.counter-strike.net/index.php/server_guidelines/)
|
||||||
|
|
||||||
### Preview
|
### Preview
|
||||||
|
|||||||
@@ -7,9 +7,7 @@ require_once 'class/utils.php';
|
|||||||
|
|
||||||
$db = new DataBase();
|
$db = new DataBase();
|
||||||
if (isset($_SESSION['steamid'])) {
|
if (isset($_SESSION['steamid'])) {
|
||||||
|
$steamid = $_SESSION['steamid'];
|
||||||
include('steamauth/userInfo.php');
|
|
||||||
$steamid = $steamprofile['steamid'];
|
|
||||||
|
|
||||||
$weapons = UtilsClass::getWeaponsFromArray();
|
$weapons = UtilsClass::getWeaponsFromArray();
|
||||||
$skins = UtilsClass::skinsFromJson();
|
$skins = UtilsClass::skinsFromJson();
|
||||||
|
|||||||
Reference in New Issue
Block a user