AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Reset skills problem! (https://forums.alliedmods.net/showthread.php?t=213701)

Spy123 04-17-2013 17:01

Reset skills problem!
 
When someone type /reset or .reset,I want to reset the skills.

In my code,skills resets but I don't get the older experience that I used..where is the problem? can someone tell me?

PHP Code:

if((equal(sz_cmd".reset") || equal(sz_cmd"/reset")) && <= sz_team <= 2) {    
        new 
xk
        
for(1<= UPGRADESx++){
            for(
0PlayerUpgrades[id][x]; k++)
            
UpgradePrice[x] += UpgradePrice[k]
            
PlayerUpgrades[id][x] = 0
            
}
        
g_Experience[id] +=
        
BuyUpgrade(id)    
    } 

This is handle_say() :) and is on soccerjam.sma :P


All times are GMT -4. The time now is 10:56.

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