Rank (Level System) NOT ADMIN, BUT PLAYER
#1

Hello all sa-mp'ers. Have a question about rank, level system.
Players can buy them, and use some commands.
like
1 level rank/costs 40000/ gives command /flip
2 level rank/costs 80000/ gives command /count
like that.

How to script that?
Reply
#2

how do you define levels?
Reply
#3

like ranks.
Reply
#4

yeah but how do you define it like level[playerid] etc.
Reply
#5

Like u can use some new commands when u have new level, who is not avaible for 0 level. and u can get cash and buy that levels.
Reply
#6

Quote:
Originally Posted by Y_Leѕѕ
This would just be done in exactly the same way as admin levels. The only thing that defines levels as admin levels is you and the commands you choose to allow them to use and what you think normal people and admin people can use. Essentially these are admin levels, but without access to commands such as kick and ban. However I would suggest the use of a group system such as that found in YSI to separate the permissions, most admin systems are inclusive - the higher up admins have all the commands of the lower ones, if you were to use these systems all admins would have access to the "/flip" and "/count" commands, even though they may not have paid for them as players (though whether or not that's what you want is entirely up to you). The group system means you can easily and dynamically define exactly who can use what commands, so using your payment system you can simply add someone to the "flip users" group and from then on they have access to it (and, if you're using the YSI user system, this information may be saved automatically (depending on whether you use a named group or not)).
Something like this?
Код:
 
Money = GetPlayerMoney(playerid);
if (strcmp("/levelup", cmdtext, true, 10) == 0)
{
if(PlayerInfo[playerid][pLevel] == 0)
 {
 if(Money >= 40000)
  {
  SendClientMessage(playerid,Your_color_here,"You Have Upgraded To Level 1!
  PlayerInfo[playerid][pLevel] == 1)
  Return 1;
  }
 }
else
ElseIf(PlayerInfo[playerid][pLevel] == 1}
{
 if(Money >= 80000)
 {
  // u can do the rest!

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)