Raised This Month: $ Target: $400
 0% 

Some timeleft calculations..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 05-13-2013 , 15:44   Some timeleft calculations..
Reply With Quote #1

Hello.
I need a calculation of elapsed map time (float vaule). There are no timelimit (mp_timelimit "0") on server (gungame), we can't use [mp_timelimit - timeleft]. How i can get him?

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new Float:ElTime

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /elapsed"elapsed)
}

public 
elapsed (id)
{
    ...
    ..
    
cleint_print(idprint_chat"%f elapsed from map bedinning",ElTime)

__________________
sorry my bad english...

Last edited by alonelive; 05-13-2013 at 15:45.
alonelive is offline
 


Thread Tools
Display Modes

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 16:16.


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