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] Warningshot


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Warningshot

Description
A simple plugin giving Counter-Terrorists the ability to give Terrorists warning shots by holding the USE-key (Default: E) and shooting a terrorist once.
By default, each warningshot makes 15 damage, but this can easily be changed via the config.

How to install
  1. Put warningshot.smx file to your csgo/addons/sourcemod/plugins folder.
  2. Put warningshot.phrases.txt file to your csgo/addons/sourcemod/translations folder.
  3. Restart the server or change map.
ConVars
sm_warning_colored - How long should the victim of the warning shot be colored? Set to 0 to disable entirely! (Def: 4)
sm_warning_damage - How much damage is a warning shot supposed to give? (Def: 15)
sm_warning_color_R - The RED value of the color the warned T should get. (Def: 255)
sm_warning_color_G - The GREEN value of the color the warned T should get. (Def: 114)
sm_warning_color_B - The BLUE value of the color the warned T should get. (Def: 0)
sm_warning_version - The current version of the plugin you're running. Don't change this!

API for Developers
PHP Code:

/**
* Gives the specified client a warning shot.
*
* @param client index of the victim.
* @param client index of the inflictor.
* @return true if succesful.
*/
native bool GiveClientWarningShot(int victimint inflictor);

/**
* Called when a client has been given a warningshot.
*
* @param The victims' client index.
* @param The attackers' client index.
*/
forward void OnWarningShotGiven(int victimint inflictor); 

Links
Github

Attached Files
File Type: txt warningshot.phrases.txt (290 Bytes)
File Type: inc warningshot.inc (533 Bytes)
File Type: sp Get Plugin or Get Source (warningshot.sp - 3.5 KB)

Wyświetl pełny artykuł

  • Super! 1
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ę...