18.05.2010, 13:44
Hello!
I have this
(Someone helped me do this)
It gives the player 10k if he reaches 50 points!
Ok so far so good...but when i relog with the same 50 score or more it give me money again!
How to fix it?
Thanks!
I have this
pawn Код:
public score100(playerid)
{
if(ScoreUpdate[playerid] == 1)
{
if(GetPlayerScore(playerid) >= 100)
{
SendClientMessage(playerid,COLOR_GREEN,"Congratulation! You won 50k for achieving 100 points.");
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(msg,sizeof(msg),"%s has won 50k for achieving 100 points.",name,playerid);
SendClientMessageToAll(COLOR_YELLOW,msg);
GivePlayerMoney(playerid, 10000);
ScoreUpdate[playerid] = 2;
}
}
}
It gives the player 10k if he reaches 50 points!
Ok so far so good...but when i relog with the same 50 score or more it give me money again!
How to fix it?
Thanks!