This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Alive Message instead of DeathMSG


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Iwon
BANNED
Join Date: Jul 2008
Old 08-20-2008 , 14:08   Alive Message instead of DeathMSG
#1

Alive Message?

PHP Code:
Is it that?
register_event("!DeathMsg","..","...")
Or 
is it
register_event
("~DeathMsg","..","..."
Iwon is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 08-20-2008 , 14:14   Re: Alive Message instead of DeathMSG
#2

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.
danielkza is offline
Iwon
BANNED
Join Date: Jul 2008
Old 08-20-2008 , 14:21   Re: Alive Message instead of DeathMSG
#3

PHP Code:
register_event("HLTV""event_new_round""a""1=0""2=0"
Thanks
Iwon is offline
Zero [UM-wFs]
Junior Member
Join Date: Aug 2008
Old 08-20-2008 , 14:23   Re: Alive Message instead of DeathMSG
#4

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
    }
}
__________________


Zero [UM-wFs] is offline
Send a message via Yahoo to Zero [UM-wFs]
Iwon
BANNED
Join Date: Jul 2008
Old 08-20-2008 , 14:25   Re: Alive Message instead of DeathMSG
#5

Quote:
Originally Posted by Zero [UM-wFs] View Post
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.
Iwon is offline
Old 08-20-2008, 15:32
Howdy!
This message has been deleted by Howdy!.
Closed Thread



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 19:46.


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