[HELP] Player's points. - 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: [HELP] Player's points. (
/showthread.php?tid=212514)
[HELP] Player's points. -
roar - 17.01.2011
Hi. . .
I need help, i've searched the forum but i can't find what i want.
So basically, how to make that every 1 minute, player's points will +1?
Thanks for the help!
Sorry for my bad English.
Re: [HELP] Player's points. -
Kase - 17.01.2011
Top of the script
pawn Код:
forward Player_Process();
public Player_Process()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
}
}
}
OnGameModeInit
pawn Код:
SetTimer("Player_Process", 60000, true);
It should work.
Re: [HELP] Player's points. -
roar - 17.01.2011
Quote:
Originally Posted by Kase
Top of the script
pawn Код:
forward Player_Process(); public Player_Process() { for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { SetPlayerScore(i, GetPlayerScore(i) + 1); } } }
OnGameModeInit
pawn Код:
SetTimer("Player_Process", 60000, true);
It should work. 
|
Thanks!! It works perfectly.
Re: [HELP] Player's points. -
Kase - 17.01.2011
No problem!