AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Alive Message instead of DeathMSG (https://forums.alliedmods.net/showthread.php?t=76216)

Iwon 08-20-2008 14:08

Alive Message instead of DeathMSG
 
Alive Message?

PHP Code:

Is it that?
register_event("!DeathMsg","..","...")
Or 
is it
register_event
("~DeathMsg","..","..."


danielkza 08-20-2008 14:14

Re: Alive Message instead of DeathMSG
 
What do you mean? If you want to detect when a player is respawned, you should use one of the methods described here: https://forums.alliedmods.net/showthread.php?t=42159 I personally prefer usinh HamSandwich Ham_Spawn.

Iwon 08-20-2008 14:21

Re: Alive Message instead of DeathMSG
 
PHP Code:

register_event("HLTV""event_new_round""a""1=0""2=0"

Thanks :)

Zero [UM-wFs] 08-20-2008 14:23

Re: Alive Message instead of DeathMSG
 
here ya go

Code:

public plugin_init()
{
    register_event("DeathMsg", "hook_death_msg")
}

public hook_death_msg()
{
    new killer = read_data(1)
    new victim = read_data(2)
   
    if(killer)
    {
        // your stuff if the player is the killer
    }

    if(victim)
    {
        // your stuff if the player is the victim
    }
}


Iwon 08-20-2008 14:25

Re: Alive Message instead of DeathMSG
 
Quote:

Originally Posted by Zero [UM-wFs] (Post 672758)
here ya go

Code:

public plugin_init()
{
    register_event("DeathMsg", "hook_death_msg")
}

public hook_death_msg()
{
    new killer = read_data(1)
    new victim = read_data(2)
   
    if(killer)
    {
        // your stuff if the player is the killer
    }

    if(victim)
    {
        // your stuff if the player is the victim
    }
}


No its not for that and read it i wanted the Alivemessage i found it now but thanks for trying to help, Lock please.


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

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