Raised This Month: $ Target: $400
 0% 

Be Right Back


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nzkswfxzqe
New Member
Join Date: Mar 2012
Old 03-07-2012 , 14:04   Re: Be Right Back
Reply With Quote #11

Quote:
Originally Posted by Parakeet View Post
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?
nzkswfxzqe is offline
 


Thread Tools
Display Modes

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 01:29.


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