PHP Code:
timekill[att]++
switch(timekill[att])
{
case 1: start = get_gametime()
case 2:
{
new Float:result = floatsub(get_gametime(),start)
if(result <= 2.0 ) client_cmd(att,"spk %s", excellent)
result = 0.0
start = 0.0
timekill[att] = 0
}
}
the problem is - skipping third kill before new count of gametime (from 2nd to 3rd kill)
how to fix it to count time for every 2 kills
1-2
2-3
3-4
not 1-2,3-4 like now
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc