AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Auto Kick (https://forums.alliedmods.net/showthread.php?t=12389)

123 04-14-2005 09:23

Auto Kick
 
Hey.
I'm looking for a script that automatiicly kicks a player when he e.g. get 100 kills.
Also I would like if I could change the number of kills myself.
I hope someone can help me.

v3x 04-14-2005 16:03

This will check at the beginning of each round if the user's frags (kills) are over X amount. If so, it'll kick the user.

Cvar: frags_limit (default 100)

Code:
#include <amxmodx> public plugin_init() {     // ..     register_event("ResetHUD","newRound","be")     register_cvar("frags_limit","100") } public newRound(id) {     if(get_user_frags(id) >= get_cvar_num("frags_limit")) {         server_cmd("kick #%d",get_user_userid(id))     }     return PLUGIN_HANDLED }

123 04-15-2005 08:11

I just tested it on my listen server, and it doesn't work.

v3x 04-15-2005 15:47

Woops! Try it now.

123 04-15-2005 16:37

Don't know why, but it still doesn't work...

v3x 04-15-2005 16:48

Try it now. Tell me exactly what you are doing.

Are you changing the amount of kills in-game? Are you waiting til a new round?

123 04-15-2005 17:00

All I do is that I change 100 to 10.
Then I compile it.
And test it. I do not change anything in-game.

From amxx list:
Code:

[ 21] unknown            unknown  unknown          frag_kicker.amx  running

ZiP* 04-15-2005 17:19

Code:
register_plugin("PLUGIN NAME","VERSION","AUTHOR")

:D

teame06 04-15-2005 17:23

@v3x

plugin works fine, i just try it myself

v3x 04-15-2005 17:29

Quote:

Originally Posted by 123
All I do is that I change 100 to 10.
Then I compile it.
And test it. I do not change anything in-game.

From amxx list:
Code:

[ 21] unknown            unknown  unknown          frag_kicker.amx  running

.amxx :roll:

@ZiP*
You don't need that. :P


All times are GMT -4. The time now is 20:31.

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