Raised This Month: $ Target: $400
 0% 

Log Events...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-13-2005 , 00:25   Log Events...
Reply With Quote #1

What are the log events for the following...



CT rescure hostie
T plant bomb

T win
Ct win

thnx
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-13-2005 , 00:31  
Reply With Quote #2

http://forums.alliedmods.net/showthr...=152515#157699

Code:
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin") register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 10-13-2005 , 01:50  
Reply With Quote #3

Again you can always use my helpful_message plugin, pretty helpful.
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 10-13-2005 , 08:07  
Reply With Quote #4

I hate catching audio/text events, so lame.... blah

Heres how I did it, it can also be done using register_logevent

Code:
public plugin_log() {     new logdata0[128], logdata1[64], logdata2[64], logdata3[64]     new name[32], id     //Get the args from the log data     read_logargv(0,logdata0,127)     read_logargv(1,logdata1,63)     read_logargv(2,logdata2,63)     read_logargv(3,logdata3,63)     //Individual Events     if (equal(logdata1,"triggered")) {         //Get the username and id out         parse_loguser(logdata0, name, 31)         id = get_user_index(name)         //Hostage Events         if (equal(logdata2,"Rescued_A_Hostage")) {             hostRescued(id)         }         else if (equal(logdata2,"Killed_A_Hostage")) {             hostKilled(id)         }         //Bomb Events         else if (equal(logdata2,"Spawned_With_The_Bomb")) {             bombHolder(id)         }         else if (equal(logdata2,"Got_The_Bomb")) {             bombHolder(id)         }         else if (equal(logdata2,"Planted_The_Bomb")) {             bombPlanted(id)         }         else if (equal(logdata2,"Defused_The_Bomb")) {             bombDefused(id)         }     }     //Team Events     else if (equal(logdata3,"All_Hostages_Rescued")) {         allHostRescued()     }     else if (equal(logdata3,"Target_Bombed")) {         bombExploded()     } }

when you see things like "hostRescued(id)" that is me calling another function to handle the event. You can pick and choose which ones to catch. plugin_log is a forward so it gets called automatically with each log event.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Reply



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 23:44.


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