Quote:
Originally Posted by Hepatitis C
For temp ban you could make a new table for characters and define it as Tempban.
Then you can make a command.
/tempban CharName
Not hard.
Then after that you can code something so it will be:
if (GC.MyChar.Tempban > 0)
{
Disconnect;
}
|
Actually if I wad doing it I would do a time based system so have the database using a date time controled by the command.
That way you could do something like /tempban playername (day/week/month)
Then have the source check if the temp ban datetime is before current datetime, if it is then clear the temp ban and allow character to log.
Not that your system wouldn't work but there would be very poor handling of unbanning a character (would need a system to lower the count server side and update the database causing extra system resources to be used, etcetc)