Rank system
#2

Код:
// Inside OnPlayerDeath

switch (KillAmounts[killerid])
{
   case 50:
   {
      // do something to promote player
   }
   case 100:
   {
      // do something to promote to lvl 2
   }
}
That's the principle. You could also use if statements (not that it matters in pawn, it does in other languages) but I personally like switches as they look a bit better and it's easier to read most of the time.
Reply


Messages In This Thread
Rank system - by Loinal - 16.02.2017, 13:10
Re: Rank system - by Hansrutger - 16.02.2017, 13:13
Re: Rank system - by Loinal - 16.02.2017, 13:44
Re: Rank system - by JesterlJoker - 16.02.2017, 13:52
Re: Rank system - by Loinal - 16.02.2017, 13:55
Re: Rank system - by X337 - 16.02.2017, 13:57
Re: Rank system - by JesterlJoker - 16.02.2017, 14:23
Re: Rank system - by Loinal - 16.02.2017, 15:47
Re: Rank system - by JesterlJoker - 16.02.2017, 15:57
Re: Rank system - by Loinal - 16.02.2017, 17:08

Forum Jump:


Users browsing this thread: 2 Guest(s)