Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
- Ошибка
-
не выводит dhub а hud показывает
- ОС
- Linux
- Amx Mod X
-
1.8.2
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.668-dev
Build date: 17:58:00 Oct 5 2018 (1637)
- ReGamedll
-
ReGameDLL version: 5.7.0.310-dev
- Версия Metamod
-
Metamod v1.21p37 2013/05/30 (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386. v0.1.0.1 ini Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 3] Rechecker RUN - rechecker_mm_i38 v2.5 ini Chlvl ANY
[ 4] Revoice RUN - revoice_mm_i386. v0.1.0.3 ini Start Never
[ 5] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 6] ProcessCmds RUN - processcmds_mm_i v1.1.5 ini Start Never
[ 7] Fun RUN - fun_amxx_i386.so v1.8.2 pl2 ANY ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl2 ANY ANY
[ 9] MySQL RUN - mysql_amxx_i386. v1.8.2 pl2 ANY ANY
[10] Engine RUN - engine_amxx_i386 v1.8.2 pl2 ANY ANY
[11] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl2 ANY ANY
[12] CStrike RUN - cstrike_amxx_i38 v1.8.2-d pl2 ANY ANY
[13] CSX RUN - csx_amxx_i386.so v1.8.2 pl2 ANY ANY
13 plugins, 13 running
- Список плагинов
-
[ 1] FreshBan 1.0.5b kanagava fresh_bans.amxx running
[ 2] AMXBans: Core MA 1.6.9 Larte Team amxbans_core.am running
[ 3] [182] Ultimate Weapons 17.08.28 SKAJIbnEJIb ultimate_weapon running
[ 4] MapChooser RBS 15.07.15 SKAJIbnEJIb & UF mapchooser_rbs. running
[ 5] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running
[ 6] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 7] Admin Help 1.8.2 AMXX Dev Team adminhelp.amxx running
[ 8] Slots Reservation 1.8.2 AMXX Dev Team adminslots.amxx running
[ 9] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 10] Admin Chat 1.8.M AMXX Dev Team adminchat.amxx running
[ 11] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 12] Maps Menu 1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 13] Menus Front-End 1.8.2 AMXX Dev Team menufront.amxx running
[ 14] CS Misc. Stats 1.8.2 AMXX Dev Team miscstats.amxx running
[ 15] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 16] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 17] Players Menu 1.8.M AMXX Dev Team plmenu.amxx running
[ 18] Restrict Weapons 1.8.2 AMXX Dev Team restmenu.amxx running
[ 19] CS Stats Logging 1.8.2 AMXX Dev Team stats_logging.a running
[ 20] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 21] Teleport Menu 1.8.2 AMXX Dev Team telemenu.amxx running
[ 22] TimeLeft 15.07.15 SKAJIbnEJIb & AM timeleft.amxx running
[ 23] Plugin Menu 1.8.2 AMXX Dev Team pluginmenu.amxx running
[ 24] [182] Ad From Server 17.10.30 SKAJIbnEJIb ad_from_server. running
[ 25] [182] Ultimate Informe 17.10.30 SKAJIbnEJIb ultimate_inform running
[ 26] StatsX GUI 1.7 AMXX Dev Team statsx_gui.amxx running
[ 27] Lite Rank System 2.3 xoymiii Lite_Rank_Syste running
[ 28] [182] Damager RBS 17.12.22 SKAJIbnEJIb damager_rbs.amx running
[ 29] Ultimate Gore 1.6 JTP10181 amx_gore_ultima running
[ 30] Warmup Random 4.0Stable VCL warmup_random.a running
[ 31] [182] VIP RBS 18.03.24 SKAJIbnEJIb vip_rbs.amxx running
[ 32] Test vip 1.0 speedkill edit a vip_test.amxx running
[ 33] [182] Parachute RBS 17.12.12 KRoT@L/JTP10181 parachute_rbs.a running
[ 34] [182] AfkKicker RBS 17.10.30 SKAJIbnEJIb afkkicker_rbs.a running
[ 35] [182] No Team Flash 17.10.30 SKAJIbnEJIb NoTeamFlash.amx running
[ 36] [182] Kill Assist RBS 17.10.30 Digi & SKAJIbnEJ killassist_rbs. running
[ 37] FM ResetScore 0.1 neygomon fm_rs.amxx running
[ 38] Nade Health 0.1 Dorus new_health_nade running
[ 39] mute 1.0 Aziz mute.amxx running
- Автор плагина
- не известно
- Версия плагина
- warmup_random
- Исходный код
-
#include <amxmodx>
#include <fakemeta_util>
#include <cstrike>
#include <fun>
#include <dhudmessage>
#include <hamsandwich>
new Timer, SecondsCvar
//new bool:first_time=true
new g_mode = 0
/*
1 - Knife
2 - Deagle
3 - Scout
4 - AWP
5 - Grenade
*/
#define TASK_REVIVE 2312
new const szWeaponNames[][] = { "", "weapon_p228", "", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_c4", "weapon_mac10",
"weapon_aug", "weapon_smokegrenade", "weapon_elite", "weapon_fiveseven", "weapon_ump45", "weapon_sg550",
"weapon_galil", "weapon_famas", "weapon_usp", "weapon_glock18", "weapon_awp", "weapon_mp5navy", "weapon_m249",
"weapon_m3", "weapon_m4a1", "weapon_tmp", "weapon_g3sg1", "weapon_flashbang", "weapon_deagle", "weapon_sg552",
"weapon_ak47", "weapon_knife", "weapon_p90" }
public plugin_init()
{
register_plugin( "Warmup Random" , "4.0Stable", "VCL" )
register_event("DeathMsg", "on_death", "a")
register_event( "CurWeapon", "EventCurWeapon", "be", "2!29" )
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
for (new i = 1; i < sizeof szWeaponNames; i++)
if (szWeaponNames[i][0]) RegisterHam(Ham_Item_AddToPlayer, szWeaponNames[i], "fw_Weapon_AddToPlayer_Post", 1)
SecondsCvar = register_cvar("wr_rr_time","60.0")
Timer = get_pcvar_num(SecondsCvar)
g_mode = random_num(1,5)
if(random_num(0,1)==1) g_mode = random_num(1,5)
set_task(1.0, "start_rr_timer", 0, _, _, "a", Timer)
}
public on_death()
{
new victim
victim = read_data(2)
if(g_mode!=0) set_task(1.0, "fnRevivePlayer", victim+TASK_REVIVE)
}
public fw_Weapon_AddToPlayer_Post(weapon, id)
{
if(g_mode!=0 && !task_exists(id)) set_task(0.1,"give_items",id)
}
public fwHamPlayerSpawnPost(id)
{
if(g_mode!=0 && !task_exists(id)) set_task(0.1,"give_items",id)
}
public give_items(id)
{
if(g_mode!=0 && is_user_connected(id) && is_user_alive(id))
{
fm_strip_user_weapons(id)
switch(g_mode)
{
case 1:
{
fm_give_item(id, "weapon_knife")
set_user_health(id, 35)
}
case 2:
{
fm_give_item(id, "weapon_deagle")
cs_set_user_bpammo(id,CSW_DEAGLE,120)
}
case 3:
{
fm_give_item(id, "weapon_scout")
cs_set_user_bpammo(id,CSW_SCOUT, 90)
}
case 4:
{
fm_give_item(id, "weapon_awp")
cs_set_user_bpammo(id,CSW_AWP,90)
}
case 5:
{
fm_give_item(id, "weapon_hegrenade")
cs_set_user_bpammo(id,CSW_HEGRENADE, 90)
}
}
}
}
public fnRevivePlayer(id)
{
id-=TASK_REVIVE
if(!is_user_alive(id) && g_mode!=0 && is_user_connected(id))
{
ExecuteHamB(Ham_CS_RoundRespawn, id)
}
}
public EventCurWeapon(id)
{
/*if(g_mode!=0 && is_user_connected(id) && is_user_alive(id))
{
switch(g_mode)
{
case 1: engclient_cmd(id, "weapon_knife")
case 2: engclient_cmd(id, "weapon_deagle")
case 3: engclient_cmd(id, "weapon_scout")
case 4: engclient_cmd(id, "weapon_awp")
case 5: engclient_cmd(id, "weapon_hegrenade")
}
}*/
}
public start_rr_timer()
{
if(get_pcvar_num(SecondsCvar)==Timer)
{
g_mode = random_num(1,5)
if(random_num(0,1)==1) g_mode = random_num(1,5)
for(new i=1;i<=32;i++)
{
give_items(i)
}
}
Timer--
new mode_name[32]
switch(g_mode)
{
case 1: format(mode_name,charsmax(mode_name),"Ножах")
case 2: format(mode_name,charsmax(mode_name),"Диглах")
case 3: format(mode_name,charsmax(mode_name),"Мухах")
case 4: format(mode_name,charsmax(mode_name),"AWP")
case 5: format(mode_name,charsmax(mode_name),"Гранатах")
default: format(mode_name,charsmax(mode_name),"ERROR")
}
if(g_mode==0)
{
remove_task()
}
else
{
set_dhudmessage(random_num(0, 255), random_num(0, 255), random_num(0, 255), -1.0, 0.25, 0, 0.0, 1.1, 0.0, 0.0)
show_dhudmessage(0, "Разминка на %s!^nРестарт через %d сек", mode_name,Timer)
}
if(Timer < 1)
{
server_cmd("sv_restartround 1")
set_task(3.0, "rr_end")
g_mode = 0
}
}
public rr_end()
{
g_mode = 0
set_dhudmessage( random_num(0, 255), random_num(0, 255), random_num(0, 255), -1.0, 0.78, 2, 6.0, 3.0, 0.1, 1.5, false )
new message[100]
new servname[64]
get_cvar_string("hostname",servname,charsmax(servname))
format(message,charsmax(message),"Разминка завершена^nПриятной игры!",servname)
show_hudmessage(0, message)
}
Здравствуйте! помогите ребят что бы выводило dhud сообщение при окончании разминки! hud выводит а вот dhud нет