Hello, this script doesnt work. How can i make it work? It would be great to have killstreaks which activates by using button "f".
PHP Code:
AddStreak()
{
    if(
self.pers["team"] == "allies")
    {
        
player self;
        
killstreak player.stats["killstreak"];
        switch(
killstreak)
        {
            case 
3:
                
self playLocalSound("hattrick");
                
iPrintLn(player.name " ^7is on 3 killstreak!");
                
self iprintlnbold("^1~>^9Press F^7 to get reward);
                if(self useButtonPressed())
                {
                    self giveWeapon("
frag_grenade_american_mp");
                    self setWeaponSlotAmmo( 1 );
                }
            break;
        }
    }