AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   DEAD ! (https://forums.alliedmods.net/showthread.php?t=51392)

ZerroQ 02-17-2007 06:53

DEAD !
 
How do i get that plugins check's if you player are DEAD then it messages you certain text ?

SAMURAI16 02-17-2007 07:00

Re: DEAD !
 
i don't understand what you want 100 % but i think you want this:
Code:

if( !is_user_alive(id))
{
    client_print(0,print_chat,"player is dead")
    // and some stuff return or else
}

Anyway, this is an example

Oskar 02-17-2007 08:06

Re: DEAD !
 
Code:

#include <amxmodx>
public plugin_init()
{
 register_event("DeathMsg","event_deathmsg","a")
}
 
public event_deathmsg()
{
 new victim = read_data(2)
 client_print(victim, print_chat, "Your'e a dead man!")
}


Davidos 02-19-2007 12:53

Re: DEAD !
 
Quote:

Originally Posted by ZerroQ (Post 441478)
How do i get that plugins check's if you player are DEAD then it messages you certain text ?

Did this get answered? If yes, post in title.

If no, what kind of message do you want?

<in chat, in center, colloured hud message?>

ZerroQ 02-20-2007 07:33

Re: DEAD !
 
oh yup, it work'd out! THANKS guys :)


All times are GMT -4. The time now is 00:45.

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