Quote:
Originally Posted by Parakeet
try this :
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init() {
register_plugin("BRB","1.1","Cheap_Suit")
register_clcmd("say","say_event")
return PLUGIN_CONTINUE
}
new phrase[1][] = { "/brb" }
public say_event(id)
{
new sid[2]
sid[0] = id
num_to_str(id,sid,2)
new said[192]
read_args(said,191)
new name[32]
get_user_name(id,name,31)
new i
for( i = 0; i < 1; i++ )
{
if(containi(said,phrase[i]) != -1)
{
if (is_user_alive(id)) user_kill(id)
client_cmd(0,"spk ^"barney/ba_later.wav^"")
client_print(0,print_chat,"*DEAD* %s : I'll be back...",name)
client_cmd(id,"jointeam 6")
}
}
}
|
Is it possible to make not to kill you? I know is this line:
Code:
if (is_user_alive(id)) user_kill(id)
What do I have to write instead of
to make it not to kill you?