AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   -Snip- Hook Events From Files (https://forums.alliedmods.net/showthread.php?t=287624)

Bacardi 09-11-2016 06:48

-Snip- Hook Events From Files
 
3 Attachment(s)
Here pointless plugin to hook events what have include kv file KvEvents.res

Unzip and place KvEvents.res file into server ...resource/ folder
and load test plugin, it start print event actions into server console.

Point of KvEvents.res file is, it can merge KeyValue structure from other files,
so there isn't duplicated sections and keys.

It read and merge these kv files
gameevents.res
hltvevents.res
modevents.res
replayevents.res
serverevents.res



...resource/KvEvents.res


test.sp

zipcore 09-12-2016 21:00

Re: -Snip- Hook Events From Files
 
Nice idea to solve it like this :up:

Peace-Maker 09-28-2016 23:25

Re: -Snip- Hook Events From Files
 
Nice output formatting.
There are some other ones too, which don't use that extra base keyvalue file, but handle the merging manually.

Generic event output and logging
[DEV] Event Info

Bacardi 09-29-2016 07:02

Re: -Snip- Hook Events From Files
 
Thanks.

I have missed all those plugins :D

I was testing, can sourcemod read kv files inside steam files and practised with keyvalue functions.
Finally I added snip here forum, so I can find next time this code. I lose or delete my code snipet all the time and can't remeber where did I saved on computer.


All times are GMT -4. The time now is 18:54.

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