Raised This Month: $ Target: $400
 0% 

detect changelevel


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-07-2007 , 21:16   detect changelevel
Reply With Quote #1

ive searched and came up with some ideas,
but im still not certain.

heres what i got:

Style A:
Code:
#include <amxmodx> public plugin_init() {    register_srvcmd("changelevel", "srvcmd_changelevel"); }


Style B:
Code:
#include <amxmodx> #include <fakemeta> public plugin_init() {    register_forward(FM_ChangeLevel, "fm_ChangeLevel", 0); }


Style C: (which i don't understand much of)
http://forums.alliedmods.net/showthread.php?t=54029


im not sure on which ones will work and if more than one does, which one is better...

help?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-07-2007 , 21:21   Re: detect changelevel
Reply With Quote #2

In my opinoin i'd used Fakemeta:
PHP Code:
 register_forward(FM_ChangeLevel"fm_ChangeLevel"0); 
X-Script is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-07-2007 , 21:23   Re: detect changelevel
Reply With Quote #3

well id rather use fakemeta cause its hawt.

but my plugin doesnt use fakemeta so does the "register_srvcmd" one work?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-07-2007 , 21:25   Re: detect changelevel
Reply With Quote #4

What do you mean it doesn't use fakemeta?
Just include fakemeta in your #includes and use the function.

I don't know if the srvcmd will work, never tried it that way.
X-Script is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-07-2007 , 22:00   Re: detect changelevel
Reply With Quote #5

I guess if you just want to catch it, you can use :
Code:
register_event("30", "changeMap", "a")

I you wana hook i don't know
ConnorMcLeod is offline
X-Script
BANNED
Join Date: Jul 2007
Location: (#504434)
Old 09-07-2007 , 22:01   Re: detect changelevel
Reply With Quote #6

Good connorr, yes you could use that withouth having to include any modules.
X-Script is offline
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 16:14.


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