AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   DeathRace | Finish Time -> Bugged (https://forums.alliedmods.net/showthread.php?t=127640)

Xalus 05-23-2010 09:19

DeathRace | Finish Time -> Bugged
 
[DeathRace] Xalus #mF won the 'DeathRace' Time: 112282577

Time = 112282577 ? :s

PHP Code:

public StartTimer()
{
    
MapTime get_gametime()
    
ChatColor(0"!g[%s]!y Timer is started,!team Go Go Go!"prefix)


PHP Code:

if(get_pcvar_num(dr_timer))
{
    new 
Float:TimePlayer = (get_gametime() - MapTime)
    
ChatColor(0"%L !yTime: !team%d"LANG_PLAYER"WON"prefixszNameTimePlayer)
            } 


grimvh2 05-23-2010 10:52

Re: DeathRace | Finish Time -> Bugged
 
floatround(TimePlayer)

Xalus 05-23-2010 11:24

Re: DeathRace | Finish Time -> Bugged
 
Like:

ChatColor(0, "%L !yTime: !team%d", LANG_PLAYER, "WON", prefix, szName, floatround(TimePlayer))

lazarev 05-23-2010 11:42

Re: DeathRace | Finish Time -> Bugged
 
floatround(TimePlayer, floatround_floor)


All times are GMT -4. The time now is 05:25.

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