Prokreedz - hundredths of second
Hi all,
How have the time of Prokreedz with hundredths of seconds ?
It's possible ?
ps: sry for my english
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
abc
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
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 :/
just wait, im trying to manage sth ;D
what sth means ?
it means "something"
sry for offtopic i though sth was straight to hell :D
ontopic that plugin will be weird :/
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])
}
}
}
its not the whole code, its just a snippet i posted cause i wanted stasko to do that
SchlumPF give the all code of this
Originally posted by SchlumPFits 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
Originally posted by SchlumPFits 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
cause the plugin i was talking about was crap and i deleted it ^^
http://schlumpf.ampaste.net/f32ec59e9
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
Please log in to post replies.