SA-MP Forums Archive
Leveling System - 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: Leveling System (/showthread.php?tid=296402)



Leveling System - LiamM - 11.11.2011

Hey guys I've searched on SAMP and can't find anything, has anyone got a tutorial they could pass onto me for a leveling system? What I mean is, when a player plays for 1 hour they gain a level and then if they continue playing for... I dunno 3 hours? they gain a level, when I mean level I mean using the SetPlayerScore.

Thanks.


Re: Leveling System - DaRkAnGeL[NBK] - 11.11.2011

Try using timers, you will also need enums and player info for the level,


Re: Leveling System - LiamM - 11.11.2011

Yeah I have the timers and enums but the main question would be, how do I make the timer longer depending on what level they were? Something like

pawn Код:
new score;
score = GetPlayerScore(playerid);
if(score == 1)
{
SetTimerEx( stuff here )
}
if(score == 2)
{
SetTimerEx (stuff here)
}
Would that be a way in doing it? I want to make it more challenging the higher the level of a player to get to the next level.