• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request !time
#1
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
  Reply
#2
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.
C++/Obj-C developer. Neko engine wip
Steam: Click
[-] The following 2 users say Thank You to Nekochan for this post:
  • OzonE, raminr63
  Reply
#3
or just tellclient or serversay .
  Reply
#4
@OzonE are you know a way to convert date format to Persian??
  Reply
#5
hmmm, i've tried this before. i cant remember but yes there is a way
you can search for it
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Information [Request] Need Time Plugin and Server Msg Plugin sylvester123 14 3,906 07-26-2013, 08:07
Last Post: sylvester123
  4D1 Extend Feeding Time Tacticalicious 1 1,025 07-02-2013, 20:59
Last Post: surtek
Tongue What are you doing in free time? Nekochan 16 2,497 05-05-2013, 08:25
Last Post: Pozzuh
  "one time we lived" Stocker 0 578 12-22-2012, 17:34
Last Post: Stocker
Brick [Request] iPrintLn Automatic time XxBRxX 13 2,276 12-20-2012, 08:46
Last Post: 99IRock
  [News] What time is it? Not gonna buy o'clock! SuperNovaAO 34 4,584 10-30-2012, 23:59
Last Post: SuperNovaAO
Big Grin Preview The time i spend on my pc can1907 16 2,460 10-28-2012, 20:27
Last Post: OrangePL
  Call of Duty reaches a new all-time low by launching 'Noobtube' JariZ 7 2,832 07-19-2012, 23:10
Last Post: JariZ
  [Request] Killstreak delay time Dumas 2 1,062 04-18-2012, 23:18
Last Post: Dumas
  Time Camelot 3 843 03-20-2012, 08:52
Last Post: JariZ

Forum Jump:


Users browsing this thread: 1 Guest(s)