Raised This Month: $51 Target: $400
 12% 

Advanced Current Time


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
zekStein
Member
Join Date: Feb 2011
Location: Romania :(
Old 03-05-2012 , 13:56   Advanced Current Time
Reply With Quote #1

* Advanced Current Time 1.0.2

by zekStein++



[~] This is a very simple plugin.
[~] For a number of seconds, it shows the Current Time instead the Round Time.

[~] The command is the default 'thetime' because this is adding an effect to it.

[~] The cvar for the number of seconds is "thetime_showtime".


[~] V1.0.2: Made some optimization.
Attached Files
File Type: sma Get Plugin or Get Source (TheTime-Effect.sma - 1447 views - 1.3 KB)
__________________
DUMITRU

Last edited by zekStein; 03-06-2012 at 12:45.
zekStein is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 03-05-2012 , 15:49   Re: Advanced Current Time
Reply With Quote #2

for one client use MSG_ONE_UNRELIABLE
and add a better decription
__________________

Last edited by tuty; 03-05-2012 at 15:49.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-05-2012 , 15:59   Re: Advanced Current Time
Reply With Quote #3

I think you could use time native so you wouldn't have to convert strings into integers : http://www.amxmodx.org/funcwiki.php?go=func&id=604

You should store roundtime at new round event (HLTV)

And this is wrong IMO :
new Float:fRemainingTime = fCurrentRoundTime * 60 - get_gametime( );

get_gametime should be replace with get_gametime - the gametime when round is starting (there is a logevent for this).
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
zekStein
Member
Join Date: Feb 2011
Location: Romania :(
Old 03-06-2012 , 12:47   Re: Advanced Current Time
Reply With Quote #4

Quote:
Originally Posted by tuty View Post
for one client use MSG_ONE_UNRELIABLE
Added.

Quote:
Originally Posted by ConnorMcLeod View Post
I think you could use time native so you wouldn't have to convert strings into integers : http://www.amxmodx.org/funcwiki.php?go=func&id=604

You should store roundtime at new round event (HLTV)

And this is wrong IMO :
new Float:fRemainingTime = fCurrentRoundTime * 60 - get_gametime( );

get_gametime should be replace with get_gametime - the gametime when round is starting (there is a logevent for this).
I used the time function and about the other ... didn't understand very well what you said but i made something.
__________________
DUMITRU
zekStein is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 03-29-2012 , 18:52   Re: Advanced Current Time
Reply With Quote #5

This is cool. Good job!
Gam3ronE is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 04-03-2012 , 13:10   Re: Advanced Current Time
Reply With Quote #6

Good job
__________________
kiki33hun is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 04-21-2012 , 07:43   Re: Advanced Current Time
Reply With Quote #7

can be show timeleft of the map?
__________________
naSTR is offline
swarmachine
Member
Join Date: Aug 2015
Location: {Baltic States}
Old 06-19-2016 , 18:31   Re: Advanced Current Time
Reply With Quote #8

yes you need search in this forum for plugin
swarmachine is offline
Send a message via Skype™ to swarmachine
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-08-2020 , 06:47   Re: Advanced Current Time
Reply With Quote #9

https://forums.alliedmods.net/showthread.php?t=172840 this one seems to be more complete.
Unapproved for now, but you can PM me and explain why your plugin is better.
__________________
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode