[CS:GO] Предупредительный выстрел / Warningshot - Плагины для CS:GO - Моддинг Игр и Серверов Jump to content
Guest

[CS:GO] Предупредительный выстрел / Warningshot


 Share

Recommended Posts

[CS:GO] Предупредительный выстрел / Warningshot


Плагин позволяет контр-террористам делать по террористам предупредительный выстрел.Идеально подойдет для Jail/Jailberak серверов.

Для выстрела нужно зажать кнопку E (действия) и выстрелить.Выстрел нанесет 15 единиц урона (можно настроить через конфиг)

 

Настройки:

sm_warning_colored - Сколько по времени игрок по которому выстрелили - будет окрашен.
sm_warning_color_R - Количество красного цвета
sm_warning_color_G - Количество зеленого цвета
sm_warning_color_B - Количество синего цвета
sm_warning_damage - Сколько урона наносит предупредительный выстрел?
sm_warning_version - Версия плагина

 

API для разработчиков

/**
* 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 victim, int inflictor);

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

 

Установка:

Раскидать файлы по папкам (.smx в plugins, .cfg в configs и так далее)


 

Link to comment
Share on other sites

  • 1 year later...
L 01/03/2021 - 22:16:59: [SM] Exception reported: Client index 1056 is invalid
L 01/03/2021 - 22:16:59: [SM] Blaming: warningshot.smx
L 01/03/2021 - 22:16:59: [SM] Call stack trace:
L 01/03/2021 - 22:16:59: [SM]   [0] IsClientInGame
L 01/03/2021 - 22:16:59: [SM]   [1] Line 72, C:\Users\tacco\Documents\SM Dev\addons\sourcemod\scripting\warningshot.sp::OnTakeDamageAlive

Так наспамило на 400 КБ в логах.

Link to comment
Share on other sites

  • 2 months later...
В 03.01.2021 в 22:27, Дмитрий Грутов сказал:

L 01/03/2021 - 22:16:59: [SM] Exception reported: Client index 1056 is invalid
L 01/03/2021 - 22:16:59: [SM] Blaming: warningshot.smx
L 01/03/2021 - 22:16:59: [SM] Call stack trace:
L 01/03/2021 - 22:16:59: [SM]   [0] IsClientInGame
L 01/03/2021 - 22:16:59: [SM]   [1] Line 72, C:\Users\tacco\Documents\SM Dev\addons\sourcemod\scripting\warningshot.sp::OnTakeDamageAlive

Так наспамило на 400 КБ в логах.

какая версия сорсмода?

Link to comment
Share on other sites

 Share

Подписывайтесь на наш Telegram и скачивайте файлы без ограничений!

×
×
  • Create New...
Search In
  • More options...
Find results that contain...
Find results in...

Write what you are looking for and press enter or click the search icon to begin your search