AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   catching player spawn with fakemeta.. (https://forums.alliedmods.net/showthread.php?t=88808)

Empowers 03-29-2009 10:22

catching player spawn with fakemeta..
 
I need to catch player spawn using fakemeta, so I was trying this:
PHP Code:

public plugin_init()
    
register_forward(FM_Spawn,"fw_PostSpawn",1)

public 
fw_PostSpawn(id)
{
    if(!
is_user_connected(id))
        return;

    
// do stuff


But it's never get called O_o.. why? And maybe there is event or logevent do detect player spawn post?

ConnorMcLeod 03-29-2009 10:30

Re: catching player spawn with fakemeta..
 
http://forums.alliedmods.net/showthread.php?t=42159

Empowers 03-29-2009 10:36

Re: catching player spawn with fakemeta..
 
Man There is only Ham's playerSpawn event and I wrote above, that I need to catch it using fakemeta.. Also I don't want to use resetHud event it's kind of buggy..

ConnorMcLeod 03-29-2009 10:46

Re: catching player spawn with fakemeta..
 
Either you use ResetHUD with all filters (will correctly catch spawn), either you use Ham_Spawn (better).

Empowers 03-29-2009 10:54

Re: catching player spawn with fakemeta..
 
and why FM_Spawn needed?? can't it catch player respawn?

ConnorMcLeod 03-29-2009 10:55

Re: catching player spawn with fakemeta..
 
No.

ot_207 03-29-2009 11:03

Re: catching player spawn with fakemeta..
 
Quote:

Originally Posted by Empowers (Post 792227)
and why FM_Spawn needed?? can't it catch player respawn?

FM_Spawn is not a good forward to use. The best forward that we have arround is Ham_Spawn. The safest, the easiest and the fastest(when we talk about efficency)

Dores 03-29-2009 12:44

Re: catching player spawn with fakemeta..
 
@ot_207: As Connor said above you, it's not that it's not efficient, but it doesn't hook players spawning.

ot_207 03-29-2009 12:53

Re: catching player spawn with fakemeta..
 
Quote:

Originally Posted by Dores (Post 792328)
@ot_207: As Connor said above you, it's not that it's not efficient, but it doesn't hook players spawning.

I know that ... -_-. That is why I recommended ham_spawn ...

hleV 03-29-2009 12:56

Re: catching player spawn with fakemeta..
 
Why don't you want to use HamSandwich? It's used everywhere nowadays.


All times are GMT -4. The time now is 09:01.

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