Unique score & timer systeme - 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)
+--- Thread: Unique score & timer systeme (
/showthread.php?tid=452603)
Unique score & timer systeme -
KimSangBum - 21.07.2013
Hйyo guyz
Can Someone help me I need to make unique time in my server each 2 minutes of real it's 1 hour of game
Also give players auto 1 point score each 10 minutes
Re: Unique score & timer systeme -
Vanter - 22.07.2013
I will give you some ideas okay?
First: you doo the timer, in your case make a two seconds timer.
second: make a textdraw for all
third: work on the timer or counter whenever 2 seconds pass, increases the textdraw 1 minute
I posted some ideas because no one will post a whole FS
The other is easy
pawn Код:
new ScoreTimer[MAX_PLAYERS];
//OnGameModeInIt:
//PlayerOneSecondVariable
SetTimer("PlayerOneSecondVariables",1000,1);
forward PlayerOneSecondVariables
public PlayerOneSecondVariables
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(ScoreTimer[i] >= 1)
{
ScoreTimer[i] --;
}
if(SoreTimer[i] == 0)
{
SetPlayerScore(i, GetPlayerScore(i) +1)
ScoreTimer[i] =10;
}
}
return 1;
}
NOTE: didn't test it