Skocz do zawartości
  • Drogi gościu!

    Tutaj możesz się zarejestrować lub zalogować:

[RSS Pluginy] [CS:GO] Warningshot


GLOBALELITE.pl

Rekomendowane odpowiedzi

  • GLOBALELITE.PL
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_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_damage - How much damage is a warning shot supposed to give? (Def: 15)
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 txt.gifwarningshot.phrases.txt (290 Bytes) inc.gifwarningshot.inc (533 Bytes) sp.gifGet Plugin or Get Source (warningshot.sp - 3.5 KB)


Pełny artykuł: https://forums.alliedmods.net/showthread.php?t=299764&goto=newpost

Odnośnik do odpowiedzi
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający

    Brak zarejestrowanych użytkowników przeglądających tę stronę.


O GLOBALELITE.PL


Chcemy pokazać absolutnie wszystkim, że człowiek jest zdolny do rzeczy wielkich! Potrzebujemy tylko waszej pomocy. Dzięki ciężkiej pracy chcemy udowodnić, że razem możemy wszystko! Szukamy ludzi ambitnych i skorych do poświeceń, ludzi którzy są godni, aby dołączyć do globalnej elity społeczności, którą traktuje się jak drugą rodzinę!

Istniejemy od 2014 r.

Motyw zrobiony przez doc

Strona zarządzana przez: Adam Plicha

Linki społecznościowe

Gdzie można nas znaleźć?


Facebook Teamspeak Discord

Linki forumowe

Linki z różnego rodzaju podaniami


Podanie o admina Prośba o unbana Propozycja Złóż skargę

Administracja

Oni odpowiedzą na Twoje pytania ;)


×
×
  • Dodaj nową pozycję...