- Ошибка
-
После убийства за невыполнение задания плагин убивает игрока. То есть отнимает одной убийство и добавляет одну смерть. Но при респавне в следующем раунде прибавляет 2 убийства. То есть при счёте игрока 0/0 плагин делает счёт равным 1/1, хотя должен делать его равным -1/1.
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5270 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun 3 2020 15:25:29
Built from: https://github.com/alliedmodders/amxmodx/commit/1bfec70
Build ID: 5270:1bfec70
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.702-dev
Build date: 18:22:55 Nov 8 2020 (2402)
Build from: https://github.com/dreamstalker/rehlds/commit/543728d
- ReGamedll
-
ReGameDLL version: 5.20.0.492-dev
Build date: 15:26:35 Jan 4 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/aae507c
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 2] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 3] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5270 ini Start ANY
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 8] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 9] CSX RUN - csx_amxx_i386.so v1.9.0.5270 pl5 ANY ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5270 pl5 ANY ANY
[11] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5270 pl5 ANY ANY
[12] Engine RUN - engine_amxx_i386.so v1.9.0.5270 pl5 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386.so v5.15.0.197-dev pl5 ANY Never
[14] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl5 ANY Never
[15] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5270 pl5 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5270 pl5 ANY ANY
[17] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5270 pl5 ANY ANY
[18] Fun RUN - fun_amxx_i386.so v1.9.0.5270 pl5 ANY ANY
18 plugins, 18 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 2] Admin Base 1.9.0.5270 AMXX Dev Team admin.amxx running
[ 3] Admin Check 1.51 OneEyed admin_check.amx running
[ 4] Lite Admin ESP 1.0 neygomon admin_esp.amxx running
[ 5] Admin Votes 1.9.0.5270 AMXX Dev Team adminvote.amxx running
[ 6] AFK Control 1.4.1 [Rnd neygomon afk_control.amx paused
[ 7] Ultimate Chats Control 5.2(c) neygomon ucc.amxx debug
[ 8] Auto Restart 1.0 CHEL74 auto_restart.am running
[ 9] c4 timer 1.1 cheap_suit c4timer.amxx running
[ 10] Change game name 1.0 Pafos change_game.amx running
[ 11] Commands Menu 1.8.1.3746 AMXX Dev Team cmdmenu.amxx running
[ 12] DemoRecoder 1.2 neygomon demorecoder.amx running
[ 13] FreshBans 1.4.3b kanagava fresh_bans_1.4. running
[ 14] Invisible Spectator 1.0 ReHLDS Team invisible_spect running
[ 15] Lite VoteBan 1.4 neygomon lite_voteban.am running
[ 16] Advanced MapChooser 1.4 neygomon map_chooser.amx running
[ 17] Maps Menu 1.9.0.5271 AMXX Dev Team mapsmenu.amxx running
[ 18] Menu 1.0 WaT_1 menu.amxx running
[ 19] Menus Front-End 1.9.0.5271 AMXX Dev Team menufront.amxx running
[ 20] Mode 2x2 2.5_reapi s1lent mode.amxx running
[ 21] Pause Plugins 1.9.0.5263 AMXX Dev Team pausecfg.amxx running
[ 22] Ping Control 1.31 neygomon ping_control.am running
[ 23] Players Menu 1.8.1.3746 AMXX Dev Team plmenu.amxx running
[ 24] resetscore 1.3 Adrenaline resetscore.amxx running
[ 25] Restrict Weapons 1.9.0.5263 AMXX Dev Team restmenu.amxx running
[ 26] Stats Configuration 1.9.0.5270 AMXX Dev Team statscfg.amxx running
[ 27] StatsX (MastaMan Editi 1.9.0.5271 AMXX Dev Team statsx_shell.am running
[ 28] Teleport Menu 1.9.0.5271 AMXX Dev Team telemenu.amxx running
[ 29] VIPka 1.3.3 neygomon vip_system.amxx running
[ 30] Steam Bonus 2.0 Neugomon steam_bonus_2.0 running
[ 31] Weapon Menu 1.0 Mattcook & xerob weaponmenu.amxx running
[ 32] NightDM 1.1 Hartmann nightdm.amxx paused
[ 33] Advert Messages 1.2 neygomon adverts.amxx running
[ 34] DeathMatch Spawn Manag 0.1.4 Vaqtincha csdm_spawn_mana running
[ 35] [190] Map Spawns Edito 20.06.06 SKAJIbnEJIb & iG MapSpawnsEditor running
[ 36] AMX Slay Losers 1.2 [email protected] slaylosers(effe running
[ 37] [ReAPI] AWPoff 1.3 PAffAEJIkA :3 awp_off.amxx running
[ 38] Dhud advert 1.0 DUKKHAZ0R bio_dhud_messag paused
[ 39] AMXX Public server rul 1.20 Priski public_rules.am running
[ 40] Chat Manager 1.1.2-16 Mistrick chatmanager.amx running
[ 41] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 42] Admin Screen 2 1.1 uTg | bigpapajig admin_screen.am running
42 plugins, 39 running
- Автор плагина
- [email protected]
- Версия плагина
- 1.2
- Исходный код
-
#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
}
Всем доброго времени суток! В чём может быть проблема, подскажите... Спасибо заранее. Предполагаю, что проблема где-то тут:
set_user_frags(id, get_user_frags(id)+1) Частично решился вопрос. Закомментил вышеуказанную строчку - теперь не +2 фрага даёт, а +1.
16 Янв 2021
set_user_frags(id, get_user_frags(id)+1)
16 Янв 2021
В этой теме было размещено решение! Перейти к решению.
Download all Attachments
-
321.8 KB Просмотры: 225
-
290 KB Просмотры: 223
-
299.6 KB Просмотры: 213