Raised This Month: $ Target: $400
 0% 

Kick bot upon death


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Otsegolectric!
Junior Member
Join Date: Feb 2009
Old 02-27-2009 , 16:13   Kick bot upon death
Reply With Quote #1

I started coding today and im sorta a toal' noob.

I want to make it so if a bot dies, he gets kicked. I've read about read_data, but couldn't get to know enough of it. What am I doing right/wrong?

Code:
public plugin_init(){
register_event("DeathMsg","event_kickbot","a")
}


public event_kickbot()
{
new victim = read_data(2)
if(is_user_bot(victim)){
server_cmd("kick ^"victim^"")
}
}
Otsegolectric! is offline
 



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


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