logevent hook
I'm trying to hook an event of Terrorists (or CT) winning, but it would seem my code is improper. Someone give me a hand?
PHP Code:
|
Re: logevent hook
The Logevent should be fine, if your ever unsure then run a simple test - show a text message to see if your successfully hooking the event.
Code:
Code:
|
Re: logevent hook
Quote:
How do you properly formulate a register_logevent() hook? |
Re: logevent hook
You can run this and look in log file if the log you are trying to register does exist, and if it exists if you have correctly formulated it.
You will have to figure which arguments don't have to be specified in filters though, because plugin is an idiot. PHP Code:
|
Re: logevent hook
Quote:
Code:
and it works wonderfully. What say you? |
Re: logevent hook
Ok...I've been testing this for a while and it's really weird why it won't give the frags. Maybe one of y'all can see something i missed.
PHP Code:
|
Re: logevent hook
PHP Code:
How could an alive player be pending ? |
Re: logevent hook
Quote:
Either way....what's wrong with that code? |
Re: logevent hook
You could save some memory if you created a global variable for each player and set it to 1 in client_authorized, then check if it's set instead of comparing a whole string.
|
Re: logevent hook
Quote:
but can no one tell me why that isn't working!? |
| All times are GMT -4. The time now is 06:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.