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

Player Feedback [SQL]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Hello, this is my first plugin however I do believe that it has a fair amount of usefulness for server administrators who want to get player feedback on other members of their server. I've created a plugin that allows players to do !like and !dislike on other players with a message.

Features:
  • (Obviously) No SQL Injection
  • MySQL and SQLite Support
  • Complete configurability over cooldowns
  • Useful messages that say how long their cooldown is
  • Cooldowns use the database to prevent players from bypassing it

Installation:
Create a new feedback database under your csgo\addons\sourcemod\configs\databases.cfg, it can be either MySQL or SQLite (other database types untested).

ConVars / Configuration:
sm_cooldown_like - Seconds of delay between being able to use sm_like
sm_cooldown_dislike - Seconds of delay between being able to use sm_dislike
sm_cooldown_shared - If 1, both sm_like and sm_dislike will be under the same cooldown
sm_cooldown_global - If 1, cooldown is for giving feedback to any player instead of the same player
sm_cooldown_simple - If not 0, the cooldown does not sync with database, is global, and shared (overrides shared and global convars)

Commands:
sm_like [Player] [Message] - Gives positive feedback towards a player
sm_dislike [Player] [Message] - Gives negative feedback towards a player
[ADMIN_ROOT] sm_deletefeedback [Steam64] - Deletes all feedback from a player
[ADMIN_ROOT] sm_clearfeedback [Steam64] - Deletes all feedback towards a player

GitHub: https://gist.github.com/MSWS/2ed64b4...49595638f10123

Attached Files
File Type: sp Get Plugin or Get Source (Feedback.sp - 14.7 KB)
File Type: smx Feedback.smx (16.8 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...