23.12.2012, 07:15
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:
Please see to it.
The scores and Money never saves.
But when i give with /setscore or /setmoney, it saves.
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;
}
}
}
The scores and Money never saves.
But when i give with /setscore or /setmoney, it saves.