Member
|
08-09-2018
, 13:11
Re: What are the "register_logevent" events?
|
#12
|
Now I'm done! Thank you so much for helping me, but now I'm happy to play the game forever! I'm sorry for asking you for nothing! I was stupid, because I wasn't know what are the events but now I found them!
This code will help you!
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#include <cstrike>
new bird_win[] = "redswar/voices/bird_win1.wav"
new bomb_defused[] = "redswar/voices/bird_win2.wav"
new hostage_rescue[] = "redswar/voices/bird_win3.wav"
new vip_escape[] = "redswar/voices/bird_win4.wav"
new pig_win[] = "redswar/voices/pig_win1.wav"
new bomb_exploded[] = "redswar/voices/pig_win2.wav"
new hostage_lost[] = "redswar/voices/pig_win3.wav"
new vip_dead[] = "redswar/voices/pig_win4.wav"
new vip_lost[] = "redswar/voices/pig_win5.wav"
new bomb_planted[] = "redswar/voices/pig_plantedthebomb.wav"
new bomb_sound[] = "weapons/c4_explode1.wav"
new round_draw[] = "redswar/voices/round_draw.wav"
public plugin_precache() {
precache_sound(bird_win)
precache_sound(pig_win)
precache_sound(bomb_defused)
precache_sound(bomb_exploded)
precache_sound(hostage_rescue)
precache_sound(hostage_lost)
precache_sound(vip_escape)
precache_sound(vip_dead)
precache_sound(bomb_planted)
precache_sound(bomb_sound)
}
public plugin_init() {
register_plugin("Red's War Voices", "1.0", "MihaiGamerXD")
register_logevent("CT_Win",6,"3=CTs_Win")
register_logevent("Terrorist_Win",6,"3=Terrorists_Win")
register_logevent("Bomb_Exploded",6,"3=Target_Bombed")
register_logevent("Hostages_Rescued",6,"3=All_Hostages_Rescued")
register_logevent("Hostages_Lost",6,"3=Hostages_Not_Rescued")
register_logevent("VIP_Dead",6,"3=VIP_Assassinated")
register_logevent("VIP_Lost",6,"3=VIP_Not_Escaped")
register_logevent("Round_Draw",4,"1=Round_Draw")
register_logevent("Team_Events", 3, "1=triggered")
}
public CT_Win() {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",bird_win)
}
public Terrorist_Win() {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",pig_win)
}
public Round_Draw() {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",round_draw)
}
public Bomb_Exploded() {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",bomb_sound)
client_cmd(0,"spk %s",bomb_exploded)
}
public Hostages_Rescued() {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",hostage_rescue)
}
public Hostages_Lost() {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",hostage_lost)
}
public VIP_Dead() {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",vip_dead)
}
public VIP_Lost() {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",vip_lost)
}
public Team_Events( )
{
new szEvent[ 64 ]
read_logargv(2, szEvent, charsmax(szEvent))
if (equal(szEvent,"Planted_The_Bomb")) {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",bomb_planted)
}
else if (equal(szEvent,"Defused_The_Bomb")) {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",bomb_defused)
}
else if (equal(szEvent,"Escaped_As_VIP")) {
client_cmd(0,"stopsound")
client_cmd(0,"spk %s",vip_escape)
}
}
|
|