Little Problem
#1

Hello,

If i added the system when a Team win, it give Money & Score to them.
But one they respawn, Their scores also Get respawn.
Like if i did /setscore : 1 and i won 10 scores from Winning, when i join i just get 1 Score.
Same Happens with money.

Heres My Script:
pawn Код:
if(Team1Kills > Team2Kills)
        {
            for(new i=0;i<MAX_PLAYERS;i++)
            {
                if(gTeam[i] == TEAM1)
                {
                    GameTextForPlayer(i, "You Won! When is the party?", 4000, 3);
                    SetPlayerScore(i, GetPlayerScore(i) + 10);
                    GivePlayerMoney(i, GetPlayerMoney(i) + 10000);
                    SetTimer("LoadingandRound", 4000, false);
                    Team1Kills = 0;
                    Team2Kills = 0;
                }
                else
                {
                    GameTextForPlayer(i, "You brought Disgrace!You LOST!", 4000, 3);
                    SetTimer("LoadingandRound", 4000, false);
                    Team1Kills = 0;
                    Team2Kills = 0;
                }
            }
        }
        else if(Team2Kills > Team1Kills)
        {
            for(new i=0;i<MAX_PLAYERS;i++)
            {
                if(gTeam[i] == TEAM2)
                {
                    GameTextForPlayer(i, "You Won! When is the party?", 4000, 3);
                    SetPlayerScore(i, GetPlayerScore(i) + 10);
                    GivePlayerMoney(i, GetPlayerMoney(i) + 10000);
                    SetTimer("LoadingandRound", 4000, false);
                    Team1Kills = 0;
                    Team2Kills = 0;
                }
                else
                {
                    GameTextForPlayer(i, "You brought Disgrace!You LOST!", 4000, 3);
                    SetTimer("LoadingandRound", 4000, false);
                    Team1Kills = 0;
                    Team2Kills = 0;
                }
            }
        }
Please see to it.
The scores and Money never saves.
But when i give with /setscore or /setmoney, it saves.
Reply


Messages In This Thread
Little Problem - by Avi Raj - 23.12.2012, 07:15
Re: Little Problem - by Lordzy - 23.12.2012, 07:39
Re: Little Problem - by B-Matt - 23.12.2012, 07:45
Re: Little Problem - by Avi Raj - 23.12.2012, 09:55
Re: Little Problem - by Lordzy - 23.12.2012, 10:13
Re: Little Problem - by Avi Raj - 23.12.2012, 10:15
Re: Little Problem - by [HK]Ryder[AN] - 23.12.2012, 11:35

Forum Jump:


Users browsing this thread: 1 Guest(s)