ItsMods

Full Version: !time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

guys i need a plugin to show !time such as B3 or MAM but i want the plugin check time location from sv_config.ini then if someone use !time plugin show Date and time for him.

[time]
Location=+0200 UTC
Code:
using System;
...... blalbalba ........

if(Message == "!time")
{
iPrintLnBold(Client, string.Format("Current time: {0}", DateTime.Now.ToString()));
}

Or if client wants to know his timezone's time, you can use his Client.IP, then google 'GeoIP class c#' and download values from somewhere.
or just tellclient or serversay .
@OzonE are you know a way to convert date format to Persian??
hmmm, i've tried this before. i cant remember but yes there is a way
you can search for it