Raised This Month: $ Target: $400
 0% 

Spectator Kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Donyc
New Member
Join Date: Nov 2006
Old 11-14-2006 , 13:23   Spectator Kick
Reply With Quote #1

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
Donyc is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-14-2006 , 14:44   Re: Spectator Kick
Reply With Quote #2

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.
VEN is offline
Donyc
New Member
Join Date: Nov 2006
Old 11-14-2006 , 18:03   Re: Spectator Kick
Reply With Quote #3

Problem solved
Donyc is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-14-2006 , 20:42   Re: Spectator Kick
Reply With Quote #4

You could also look at my Play or Be Kicked plugin.
__________________
Brad is offline
Reply



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 06:59.


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