AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Spectator Kick (https://forums.alliedmods.net/showthread.php?t=47298)

Donyc 11-14-2006 13:23

Spectator Kick
 
I have a small problem.

I'm going to write a plugin who kick specators after a certain time.

For example: I want to kick players who have been a spectator for more then 5 min.

I really have no idea how to make this, so please help me.

Regards
Donyc

VEN 11-14-2006 14:44

Re: Spectator Kick
 
Spectators only or unassigned players also?
You can set_task when they join spectators and remove_task when they leave spectators. In the task itself kick them. To detect if they joined spectators you better look for example into the "Full Server Idler Kicker" plugin source code.

Donyc 11-14-2006 18:03

Re: Spectator Kick
 
Problem solved

Brad 11-14-2006 20:42

Re: Spectator Kick
 
You could also look at my Play or Be Kicked plugin.


All times are GMT -4. The time now is 06:59.

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