AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Be Right Back (https://forums.alliedmods.net/showthread.php?t=2033)

unique 04-02-2011 09:12

Re: Be Right Back
 
hy man.can you make it for so linux please ?:?
solved

nzkswfxzqe 03-07-2012 14:04

Re: Be Right Back
 
Quote:

Originally Posted by Parakeet (Post 25188)
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
Code:

user_kill
to make it not to kill you?


All times are GMT -4. The time now is 12:46.

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