AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   timekill help (https://forums.alliedmods.net/showthread.php?t=250361)

avril-lavigne 10-23-2014 05:19

timekill help
 
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


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

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