ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Re: New World - Now Hiring Lead Programmer(s)! (Community)
Re: New World - Now Hiring Lead Programmer(s)! // Communitystrike rapierNov 2, 2005, 10:00pm
class CTrashBot :
public CBaseBot { protected: IMPLIMENT_STD_AVATARS(CBaseAvatar) IMPLIMENT_STD_LOGIN( ) IMPLIMENT_STD_COMMS( ) void OnTimer(UINT TimerID) { PBASEAVATAR user; FOR_EACH_OF_DEFINED_USERS(user, g_Avatars) if (GetTickCount() - user.GetLastActionTime() >= 1000 * 60 * 60) user->EjectUser("RIP", 300); END_FOR_EACH } }; ;) <3 -- - Mark Randall http://zetech.swehli.com "Those people that think they know everything are a great annoyance to those of us who do" Isaac Asimov [View Quote] |