Level system ! (+REP for help)
#4

require y_timers, foreach
Add pCSecs, pLevel to your enum
pawn Код:
// UPDATE Player connect time per secs
task UpdatePerSecs[1000]()
{
    foreach(new i : Player)
    {
        PlayerInfo[i][pCSecs]++;
        // 1 hours
        if(PlayerInfo[i][pCSecs] >= 3600)
        {
            PlayerInfo[i][pCSecs] -= 3600;
            PlayerInfo[i][pLevel]++;
            SetPlayerScore(playerid, PlayerInfo[i][pLevel]);
        }
    }
}
Reply


Messages In This Thread
Level system ! (+REP for help) - by Reebok1 - 11.05.2014, 11:45
Re: Level system ! (+REP for help) - by DaniceMcHarley - 11.05.2014, 11:48
Re: Level system ! (+REP for help) - by Reebok1 - 11.05.2014, 11:52
Re: Level system ! (+REP for help) - by rickisme - 11.05.2014, 13:15
Re: Level system ! (+REP for help) - by Reebok1 - 11.05.2014, 13:26
Re: Level system ! (+REP for help) - by Reebok1 - 11.05.2014, 13:30
Re: Level system ! (+REP for help) - by Reebok1 - 11.05.2014, 13:32
Re: Level system ! (+REP for help) - by rickisme - 11.05.2014, 14:00
Re: Level system ! (+REP for help) - by Reebok1 - 11.05.2014, 14:16
Re: Level system ! (+REP for help) - by rickisme - 11.05.2014, 14:20

Forum Jump:


Users browsing this thread: 2 Guest(s)