Prokreedz - hundredths of second

Started by -AvAtAr- mapper
03/01/2008 13:41
Page 1 of 1
-AvAtAr- mapper03/01/2008 13:41

Hi all,

How have the time of Prokreedz with hundredths of seconds ?

It's possible ?

ps: sry for my english

stask0 Tournament #221/03/2008 00:34

sure it's possible ^^ and it will be very cool if someone add miliseconds or just show(give an example) how to code it ;o

SchlumPF21/03/2008 13:48(edited 25/07/2008 14:51)

abc

stask0 Tournament #221/03/2008 15:27

Originally posted by SchlumPF*
g_fTime[plr] = get_gametime( ) to get his time on start
zo get his time at finish:
new minutes = 0
new Float:seconds = get_gametime( ) - fTime[plr]
if( ( seconds / 60.0 ) >= 1 )
{
minutes = floatround( seconds / 60.0, floatround_floor )
seconds -= minutes * 60
}



g_fTime[33] is a float stask0
gogo want to see some plugin of you here




yea right... :D

tolsty24/07/2008 01:58

Shlumpf can you plz write more specificly for prokreedz which lines to change and how.. i tried but i get messed up all the time :/

SchlumPF24/07/2008 10:24

just wait, im trying to manage sth ;D

tolsty24/07/2008 12:39

what sth means ?

cC|Nikolaa24/07/2008 14:59

it means "something"

some1here24/07/2008 18:35

sry for offtopic i though sth was straight to hell :D

ontopic that plugin will be weird :/

tolsty25/07/2008 01:51(edited 25/07/2008 01:52)

plz shlumpf correct my mistake

public timer_task() {
for(new i=1;i<=get_maxplayers();i++) {
if(is_user_connected(i) && is_user_alive(i) && showtimer[i-1] && timer_started[i-1]) {
new imin = 0
new Float: kreedztime = get_gametime( ) - timer_time[i-1], imin
if((kreedztime / 60.0) >= 1) {
imin = floatround(kreedztime / 60.0,floatround_floor)
kreedztime -= imin * 60
}
set_hudmessage(0, 128, 255, 0.40, 0.10, 0, 0.0, 1.0, 0.0, 0.0, 1);
show_hudmessage(i, "[ %d : %d | CP %d | TP %d ]", imin, kreedztime, checkpointnum[i-1], gochecknum[i-1])

}
}
}

SchlumPF25/07/2008 03:06

its not the whole code, its just a snippet i posted cause i wanted stasko to do that

sibox25/07/2008 03:31

SchlumPF give the all code of this

tolsty25/07/2008 11:02

Originally posted by SchlumPF
its not the whole code, its just a snippet i posted cause i wanted stasko to do that

So why you cant post all of te code? in prokreedz thread u said "out of my private plugin" .. :D
plzzz this will be very usefull to many peapole, & in servers the timer will be more accurate & there will be more competition to get in the top

stask0 Tournament #225/07/2008 14:19

Originally posted by SchlumPF
its not the whole code, its just a snippet i posted cause i wanted stasko to do that


lol i've already made that before some months :D

SchlumPF25/07/2008 14:50(edited 25/07/2008 15:19)

cause the plugin i was talking about was crap and i deleted it ^^
http://schlumpf.ampaste.net/f32ec59e9

tolsty25/07/2008 16:56(edited 26/07/2008 15:42)

everything works fine.. there was 1 prob whith /top10 that username didnt show up, but i figured out that arg2[8] should be arg2[32] and vaultreturn should be 152.

P.S if someone has trouble whith the timer in the moded top10, heres is a fixed version that works fine.
http://yy.lv/download.php?f=150681

Page 1 of 1

Please log in to post replies.