Raised This Month: $32 Target: $400
 8% 

What are the "register_logevent" events?


Post New Thread Reply   
 
Thread Tools Display Modes
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 08-09-2018 , 11:29   Re: What are the "register_logevent" events?
Reply With Quote #11

Quote:
Originally Posted by MihaiGamerXD View Post
I tried to search on google, but I found nothing!
Really?
  1. https://forums.alliedmods.net/showpo...17&postcount=2
  2. https://forums.alliedmods.net/showthread.php?t=40164
  3. https://forums.alliedmods.net/showpo...49&postcount=5

...
__________________








CrazY. is offline
MihaiGamerXD
Member
Join Date: Aug 2018
Old 08-09-2018 , 13:11   Re: What are the "register_logevent" events?
Reply With Quote #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 
szEvent64 ]
    
read_logargv(2szEventcharsmax(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)
    }

MihaiGamerXD is offline
MihaiGamerXD
Member
Join Date: Aug 2018
Old 08-09-2018 , 13:12   Re: What are the "register_logevent" events?
Reply With Quote #13

Remember! I had custom sounds!
MihaiGamerXD is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode