Raised This Month: $ Target: $400
 0% 

Be Right Back


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Parakeet
Junior Member
Join Date: May 2004
Old 06-12-2004 , 13:21  
Reply With Quote #1

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")   
  }
 }
}
__________________
french AMX/AMXX Community
Pour des traductions compatibles AMX et AMXX:
http://cyberguerrier.free.fr/amxcodingV2/index.php
Parakeet is offline
WPH-Len
Junior Member
Join Date: Feb 2007
Location: London
Old 03-01-2007 , 05:14   Re: Be Right Back
Reply With Quote #2

Great plugin, using it on my server
85.234.155.250:27065
WPH-Len is offline
Send a message via MSN to WPH-Len
WPH-Len
Junior Member
Join Date: Feb 2007
Location: London
Old 03-01-2007 , 05:37   Re: Be Right Back
Reply With Quote #3

Quote:
Originally Posted by WPH-Len View Post
Great plugin, using it on my server
85.234.155.250:27065
Btw, when someone says /brb it leaves there body^^ as if they lagged out, would be nice if there body would disapear
I've attached a screeny
Screenshot
WPH-Len is offline
Send a message via MSN to WPH-Len
nzkswfxzqe
New Member
Join Date: Mar 2012
Old 03-07-2012 , 14:04   Re: Be Right Back
Reply With Quote #4

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
Reply


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 08:24.


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