Kick bot upon death
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(){ |
Re: Kick bot upon death
"kick #%d", get_user_userid(victim)
|
Re: Kick bot upon death
Thanks!
What does %d refer to? |
Re: Kick bot upon death
new victim = read_data(2)
if(is_user_bot(victim)){ server_cmd("kick #%d", get_user_userid(victim) ) } Is for numbers. becuase get_user_userid return a number. %s String %f Float %d %i Numbers |
Re: Kick bot upon death
I just figured is_user_bot needs an index. 'Victim' won't work then would it?
|
Re: Kick bot upon death
Altered the code. It works now thanks for the help.
Code:
public event_kickbot() |
Re: Kick bot upon death
Code:
public event_kickbot() |
Re: Kick bot upon death
I didn't know its parameters could contain double functions with parameter :O
sorry for my stupidity i thought antibots was merely summing a solution that i was to place somewhere Edit: SnoW, yours doesnt work. Edit: It does when I re-add the # in front of the %d. |
Re: Kick bot upon death
PHP Code:
|
Re: Kick bot upon death
Use HAM_IGNORE.
|
| All times are GMT -4. The time now is 17:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.