Маппер
Проверенный
Участник
Пользователь
- Сообщения
- 160
- Реакции
- 170
- Помог
- 1 раз(а)
- Ошибка
-
Ошибок нет,плагин компилируется.
- ОС
- Linux
- Билд
-
Exe version 1.0.0.3/Stdio (czero)
ReHLDS version: 3.4.0.648-dev
Build date: 06:35:57 May 6 2018 (1485)
- ReGamedll
-
ReGameDLL version: 5.7.0.301-dev
Build date: 00:28:14 Apr 9 2018
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386.so v1.8.3-Re ini Start ANY
[ 2] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.8.3-Re pl1 ANY ANY
[ 3] CSX RUN - csx_amxx_i386.so v1.8.3-Re pl1 ANY ANY
[ 4] FakeMeta RUN - fakemeta_amxx_i386.so v1.8.3-Re pl1 ANY ANY
[ 5] Engine RUN - engine_amxx_i386.so v1.8.3-Re pl1 ANY ANY
[ 6] CStrike RUN - cstrike_amxx_i386.so v1.8.3-Re pl1 ANY ANY
[ 7] Fun RUN - fun_amxx_i386.so v1.8.3-Re pl1 ANY ANY
[ 8] ReAPI RUN - reapi_amxx_i386.so v5.6.0.156-dev pl1 ANY Never
- Список плагинов
-
[ 1] Admin Base 1.8.3-Re AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.8.3-Re AMXX Dev Team admincmd.amxx running
[ 3] Menus Front-End 1.8.3-Re AMXX Dev Team menufront.amxx running
[ 4] Commands Menu 1.8.3-Re AMXX Dev Team cmdmenu.amxx running
[ 5] Players Menu 1.8.3-Re AMXX Dev Team plmenu.amxx running
[ 6] Maps Menu 1.8.3-Re AMXX Dev Team mapsmenu.amxx running
[ 7] Plugin Menu 1.8.3-Re AMXX Dev Team pluginmenu.amxx running
[ 8] Admin Votes 1.8.3-Re AMXX Dev Team adminvote.amxx running
[ 9] TimeLeft 1.8.3-Re AMXX Dev Team timeleft.amxx running
[ 10] Stats Configuration 1.8.3-Re AMXX Dev Team statscfg.amxx running
[ 11] Restrict Weapons 1.8.3-Re AMXX Dev Team restmenu.amxx running
[ 12] StatsX 1.8.3-Re AMXX Dev Team statsx.amxx running
[ 13] [CS] AWP Limit 0.1 81x08 cs_awp_limit.am running
[ 14] Lie Flat Optimized 1.1 Nomexous lie_flat_optimi running
[ 15] AMX Slay Losers 1.2 [email protected] slaylosers.amxx running
[ 16] Admin Spectator ESP 1.6 KoST admin_spec_esp_ running
[ 17] Anti DoubleDuck 1.7 Numb antidoubleduck. running
[ 18] Ban Shield 0.2 Flash banshield.amxx running
[ 19] 'Fire in the hole' blo 1.0 xPaw hidefireintheho running
[ 20] Reset Score 0.0.2 Vaqtincha resetscore_fix. running
[ 21] Ping Faker 1.5a MeRcyLeZZ bot_ping.amxx running
[ 22] Bot Features 0.0.5 Vaqtincha BotFeatures.amx running
[ 23] Drop Pistols on Death 0.0.2 Vaqtincha reapi_dead_pist running
[ 24] pman checker 0.03f wopox pman_checker.am running
[ 25] WeaponState Remember 0.0.2 Vaqtincha weaponstate_rem running
[ 26] Always Gib if Killed b 0.1 Safety1st always_gib.amxx running
[ 27] Super Bunny Hopper 1.2 Cheesy Peteza bhop.amxx running
[ 28] Use Sound Block 1.0 DJ_WEST usesoundblock.a running
28 plugins, 28 running
- Исходный код
-
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <csx>
new white
new lightning
new g_sModelIndexSmoke
new g_SlayMsg[4][] =
{
"KILL_MSG_1",
"SLAY_MSG_2",
"SLAY_MSG_3",
"SLAY_MSG_4"
}
public plugin_init(){
register_plugin("AMX Slay Losers","1.2","[email protected]")
register_event("SendAudio","end_round","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
register_dictionary("slaylosers.txt")
register_cvar("mp_slaylosers","1",FCVAR_SERVER)
return PLUGIN_CONTINUE
}
public end_round(){
// “олько активный, если CVAR не равен 0
if( get_cvar_num("mp_slaylosers") ){
new parm[32]
new len = read_data(2,parm,31)
set_task(1.0,"slay_those_losers",0,parm, len + 1)
}
return PLUGIN_CONTINUE
}
// ”бивает каждого игрока, который был не в состо¤нии мешать другой команде закончить цель.
// —лучайное убивает метод, выбран дл¤ каждого игрока.
public slay_those_losers(parm[]) {
new origin[3], srco[3]
new player[32], playersnum
new id
get_players(player,playersnum,"ea",(parm[7] == 't') ? "CT" : "TERRORIST" )
for(new i = 0; i < playersnum; ++i){
id = player[i]
get_user_origin(id,origin)
origin[2] -= 26
srco[0]=origin[0]+150
srco[1]=origin[1]+150
srco[2]=origin[2]+800
switch(random_num(1,3)){
case 1:{
slay_lightning(srco,origin)
emit_sound(id,CHAN_ITEM, "ambience/thunder_clap.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
case 2:{
slay_blood(origin)
emit_sound(id,CHAN_ITEM, "weapons/headshot2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
case 3: {
slay_explode(origin)
emit_sound(id,CHAN_ITEM, "weapons/explode3.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
}
set_hudmessage(178, 14, 41, -1.0, -0.4, 1, 0.5, 1.7, 0.2, 0.2,5);
show_hudmessage(0, "%L", LANG_PLAYER, g_SlayMsg[random_num(0, 3)]);
user_kill(id,1)
set_user_frags(id, get_user_frags(id)+1)
}
}
slay_explode(vec1[3]) {
// круги взрыва
message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1)
write_byte( 21 )
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2] + 16)
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2] + 1936)
write_short( white )
write_byte( 0 ) // startframe
write_byte( 0 ) // framerate
write_byte( 2 ) // life
write_byte( 16 ) // width
write_byte( 0 ) // noise
write_byte( 188 ) // r
write_byte( 220 ) // g
write_byte( 255 ) // b
write_byte( 255 ) //brightness
write_byte( 0 ) // speed
message_end()
//¬зрыв2
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte( 12 )
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_byte( 188 ) // byte (scale in 0.1's)
write_byte( 10 ) // byte (framerate)
message_end()
//ƒым
message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec1)
write_byte( 5 )
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_short( g_sModelIndexSmoke )
write_byte( 2 )
write_byte( 10 )
message_end()
}
slay_blood(vec1[3]) {
//¬—ѕЋ≈— Ћј¬џ
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte( 10 )
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
message_end()
}
slay_lightning(vec1[3],vec2[3]) {
//молни¤
message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
write_byte( 0 )
write_coord(vec1[0])
write_coord(vec1[1])
write_coord(vec1[2])
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
write_short( lightning )
write_byte( 1 ) // framestart
write_byte( 5 ) // framerate
write_byte( 2 ) // life
write_byte( 20 ) // width
write_byte( 30 ) // noise
write_byte( 200 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // r, g, b
write_byte( 200 ) // brightness
write_byte( 200 ) // speed
message_end()
//искра
message_begin( MSG_PVS, SVC_TEMPENTITY,vec2)
write_byte( 9 )
write_coord( vec2[0] )
write_coord( vec2[1] )
write_coord( vec2[2] )
message_end()
//ƒым
message_begin( MSG_BROADCAST,SVC_TEMPENTITY,vec2)
write_byte( 5 )
write_coord(vec2[0])
write_coord(vec2[1])
write_coord(vec2[2])
write_short( g_sModelIndexSmoke )
write_byte( 10 )
write_byte( 10 )
message_end()
}
public plugin_precache() {
g_sModelIndexSmoke = precache_model("sprites/steam1.spr")
lightning = precache_model("sprites/lgtning.spr")
white = precache_model("sprites/white.spr")
precache_sound( "ambience/thunder_clap.wav")
precache_sound( "weapons/headshot2.wav")
precache_sound( "weapons/explode3.wav")
return PLUGIN_CONTINUE
}
Плагин наказания за невыполнение задания.
После наказания ,со следующего спавна сразу следует наказание .Короче спавн->смерть->спавн->смерть, эффекты при наказании воспроизводятся.
После наказания ,со следующего спавна сразу следует наказание .Короче спавн->смерть->спавн->смерть, эффекты при наказании воспроизводятся.
Последнее редактирование: