3Questions concerning HamSandwich
Hi,
I recently discovered Fatalis' lil' timer plugin link, which inludes the "hamsandwhich"module. I tryed to modify the timer a bit, therefore 3 questions came to my mind.
1. I searched in the inet for general information about the hamsandwhich module (e.g 'functions explained'), but whithout any success. If anyone got some information for me , I'd appreciate it.
2. The timer only shows seconds (e.g "you finished in 150.567seconds").
I wanted to modify it, that the timer shows minutes as well so I did the following:
[blockquote]else if ( ent == gStopButton && g_bStarted[plr] )
{
new fGameTime = floatround(get_gametime()-fStartTime[plr]);
new fMins = fGameTime / 60;
new fSecs =fGameTime - (fMins * 60);
g_bStarted[plr] = false;
client_print(plr, print_chat, "You finished in %02d:%02d [%0.3f seconds]",fMins,fSecs,get_gametime() - fStartTime[plr]);
}[/blockquote]
Now it shows 00:00 [0.000seconds] is it possible to change it to 00:000.
So that it shows minutes (00:) and miliseconds (:000).
If anyone got some help or hints for me , would be uber nice :).
3.Moreover I would like to have a function like in the AMX_climb_timer, when u press "use" ur current climb time will be displayed.
Once again I need some help, code snippets to understand how it works.
Ty all in advance, greetz
sorry, wrong topic :x plz delete
Please log in to post replies.