Raised This Month: $ Target: $400
 0% 

timekill help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 10-23-2014 , 05:19   timekill help
Reply With Quote #1

PHP Code:
 timekill[att]++
    switch(
timekill[att])
        {
        case 
1start 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

Last edited by avril-lavigne; 10-23-2014 at 05:22.
avril-lavigne is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:44.


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