Score! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Score! (
/showthread.php?tid=196085)
Score! -
Natrens - 04.12.2010
How set all player score to all time to 0?
Re: Score! -
xxmitsu - 04.12.2010
You mean like this ?
pawn Код:
public OnGameModeInit()
{
SetTimer("ResetScore",1000,true); // Set a timer to reset the score at each second.
}
forward ResetScore(); public ResetScore()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) SetPlayerScore(i, 0);
}
return 1;
}
Re: Score! -
Natrens - 04.12.2010
Tnq xxMitsu.