Re: New World - Now Hiring Lead Programmer(s)! (Community)

Re: New World - Now Hiring Lead Programmer(s)! // Community

1  |  

strike rapier

Nov 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]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn