#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "Hud D&S"
#define VERSION "1.0"
#define AUTHOR "Aki_Lucky"
public plugin_init(){
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Killed,"player","player_kill")
}
public player_kill(victim, killer, corpse){
set_hudmessage(255, 255, 255, 0.47, 0.18);
show_hudmessage(victim, "РЕКЛАМА!")
return 0
}
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "Hud D&S"
#define VERSION "1.0"
#define AUTHOR "Aki_Lucky"
new i_num[33]
new reklama[][] = {"реклама 1", "реклама 2", "реклама 3", "реклама 4"} // перечислить все рекламные сообщения через запятую и в ковычках
#define time_hud 8.0 // время показа худ сообщения. значение вида 1.0 , 2.0
public plugin_init(){
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Killed, "player", "player_killed", 1)
register_event("TeamInfo", "eTeamInfo", "a");
}
public player_killed(victim, killer, corpse){
hud(victim)
}
public hud(id){
set_hudmessage(255, 255, 255, 0.47, 0.18, 0, time_hud)
show_hudmessage(id, "%s", reklama[i_num[id]])
i_num[id]++
if (i_num[id] == sizeof reklama)
i_num[id] = 0
set_task(time_hud, "hud", id);
}
public eTeamInfo() {
new iClient = read_data(1);
new szTeam[2];
read_data(2, szTeam, charsmax(szTeam));
switch(szTeam[0]){
case 'T': {
return 0
}
case 'C': {
return 0
}
case 'S':{
hud(iClient)
}
}
return 0
}
public client_connect(id)
i_num[id] = 0
#include <amxmodx>
#define NAME "HUDMESSAGE_ADV"
#define VERSION "1.0"
#define AUTHOR "sweden"
new g_msgSyncHud, g_mxplrs
public plugin_init()
{
register_plugin( NAME, VERSION, AUTHOR )
g_msgSyncHud = CreateHudSyncObj()
g_mxplrs = get_maxplayers()
set_task( 1.0, "task_reclam", _, _, _, "b" )
}
public task_reclam()
{
for( new id = 1; id <= g_mxplrs; id++ )
{
if(!is_user_alive(id))
{
set_hudmessage( 0, 239, 0, -1.0, 0.2, 2, 0.1, 5.0, 0.02, 0.02, -1 )
ShowSyncHudMsg( id, g_msgSyncHud, "Добро Пожаловать на наш сервер^nIP Адресс:777.777.777:27015^nГруппа Вконтакте[https://vk.com/durov]" )
}
}
}