Тут код:Какой плагин для кс го чтобы при убийстве мерцал экран синим?
Держи в курсея этим пользуюсь Модуль плагина - [VIP] Kill Screen
Что? Ты сам сегодня отписался в этой теме раньше этого парняТеме уже почти 2 года, нафига тут что-то писать?
Если не сложно, удалите сообщение, не надо некропостить.
#include <sourcemod>
public Plugin:myinfo =
{
name = "Blue Screen of Kill",
author = "johnspade",
description = "The plugin fades the screen to transparent blue for a second when you kill someone",
version = "1.0",
url = "http://johnspade.ru"
}
// Получение события смерти
public OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath);
}
// Функция затемнения
PerformFade(client, duration, const color[4]) {
new Handle:hFadeClient=StartMessageOne("Fade",client)
BfWriteShort(hFadeClient,duration)
BfWriteShort(hFadeClient,0)
BfWriteShort(hFadeClient,(0x0001))
BfWriteByte(hFadeClient,color[0])
BfWriteByte(hFadeClient,color[1])
BfWriteByte(hFadeClient,color[2])
BfWriteByte(hFadeClient,color[3])
EndMessage()
}
// Получение игрока-убийцы, применение к нему функции затемнения
public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
new attacker_id = GetEventInt(event, "attacker");
new attacker = GetClientOfUserId(attacker_id);
PerformFade(attacker, 300, {0, 0, 200, 51});
// PerformFade(клиент, продолжительность, {красный, зеленый, синий, прозрачность})
}
ПробуйА есть что бы на рандоме красный, синий, желтый, зеленый?
#include <sourcemod>
public Plugin:myinfo =
{
name = "Blue Screen of Kill",
author = "johnspade",
description = "The plugin fades the screen to transparent blue for a second when you kill someone",
version = "1.0",
url = "http://johnspade.ru"
}
// Получение события смерти
public OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath);
}
// Функция затемнения
PerformFade(client, duration, const color[4]) {
new Handle:hFadeClient=StartMessageOne("Fade",client)
BfWriteShort(hFadeClient,duration)
BfWriteShort(hFadeClient,0)
BfWriteShort(hFadeClient,(0x0001))
BfWriteByte(hFadeClient,color[0])
BfWriteByte(hFadeClient,color[1])
BfWriteByte(hFadeClient,color[2])
BfWriteByte(hFadeClient,color[3])
EndMessage()
}
// Получение игрока-убийцы, применение к нему функции затемнения
public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
new attacker_id = GetEventInt(event, "attacker");
new attacker = GetClientOfUserId(attacker_id);
int random= GetRandomInt(1, 4);
if(random==1)
PerformFade(attacker, 300, {255, 255, 0, 51}); // Жёлтый
else if(random==2)
PerformFade(attacker, 300, {255, 0, 0, 51}); // Красный
else if(random==3)
PerformFade(attacker, 300, {0, 0, 255, 51}); // Синий
else if(random==4)
PerformFade(attacker, 300, {0, 255, 0, 51}); // Зелённый
// PerformFade(клиент, продолжительность, {красный, зеленый, синий, прозрачность})
}
Не знаю почему, но у меня сервер падает с этим плагином..@opportune,PHP:#include <sourcemod> public Plugin:myinfo = { name = "Blue Screen of Kill", author = "johnspade", description = "The plugin fades the screen to transparent blue for a second when you kill someone", version = "1.0", url = "http://johnspade.ru" } // Получение события смерти public OnPluginStart() { HookEvent("player_death", Event_PlayerDeath); } // Функция затемнения PerformFade(client, duration, const color[4]) { new Handle:hFadeClient=StartMessageOne("Fade",client) BfWriteShort(hFadeClient,duration) BfWriteShort(hFadeClient,0) BfWriteShort(hFadeClient,(0x0001)) BfWriteByte(hFadeClient,color[0]) BfWriteByte(hFadeClient,color[1]) BfWriteByte(hFadeClient,color[2]) BfWriteByte(hFadeClient,color[3]) EndMessage() } // Получение игрока-убийцы, применение к нему функции затемнения public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) { new attacker_id = GetEventInt(event, "attacker"); new attacker = GetClientOfUserId(attacker_id); PerformFade(attacker, 300, {0, 0, 200, 51}); // PerformFade(клиент, продолжительность, {красный, зеленый, синий, прозрачность}) }