Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[CS:GO] Round Win Share for Retakes (v1.0 2018/10/8)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
[Retake RWS]
Hello guys, I'm SoLo. Currently running A CS:GO Community Server in Hong Kong called HKHBC.

I made my very first plugin called Round Win Share for Retake.

It's a Rating System based on the Damage done by the player. Compared to other rating systems, RWS is more suitable for retake's limitations.

This RWS system is not fully the same as other RWS system,s it has a few differences:
  1. When the player disconnects, the plugin will calculate their RWS by how many rounds they have played.
  2. The RWS system doesn't count the PLANTING BOMB or DEFUSING BOMB as a validate RWS action.
  3. The RWS system only counts the damage that done by the player.

Requirements:
A MySQL Database

How to use:
1.Download the plugin
2.Create a new table in your MySQL database with the following SQL:
PHP Code:

CREATE TABLE IF NOT EXISTS `rws` (
  `
idint(11NOT NULL AUTO_INCREMENT,
  `
steamchar(255CHARACTER SET latin1 NOT NULL,
  `
rwsfloat UNSIGNED NOT NULL DEFAULT '0',
  `
rwscountint(10UNSIGNED NOT NULL DEFAULT '0',
  
PRIMARY KEY (`id`)
ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci

3.Configure your /addons/sourcemod/configs/database.cfg and create a Database Entry for the plugin
PHP Code:

        "RRWS"
        
{
        
"driver"            "default"
        "host"                "<host of your database>"
        "database"            "<name of the database"
        "user"                "<username of the database>"
        "pass"                "<password of the database>"
        


How to compile:
This plugin uses a color library called <kento_csgocolors> by Kento
His profile: rogeraabbccdd

You need to have <kento_csgocolors> in order to compile this plugin. if you do not have the library, just change the PPrintToChat, PPrintToChatAll, CPrintToChat and CPrintToChatAll to PrintToChat and PrintToChatAll.



Notice:
Since this is my very first plugin, the plugin is poorly-written, which may contain bugs. Leave all your problems in the GitHub Repository
GitHub:
https://github.com/dickylau20/Retakes-RWS



Attached Files
File Type: sp Get Plugin or Get Source (retakes_rws.sp - 11.6 KB)
File Type: smx retakes_rws.smx (12.7 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...