[HELP] Player's points.
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

No problem!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)