Level up, respect points & payday system.
#1

Hi, I need help on how to create this... I haven't got a clue. I use to do deathmatch GM's in the past, but now I want to try and make an RP GM. However, I need some help..

I have made the registration and login system already using y_ini. I would like to know how I'd go about adding a level up system, where the level on the user file would correspond with the score on tab, and also how to make a respect point system, e.g., you need X amount of respect points to level up, also how to create a payday system, e.g., every hour you get +1 respect point and a certain amount of money.

Thanks if you can help.
Reply
#2

Page 2 - UP!
Reply
#3

For the Respect Points and level up system,

You can add this to your enum

pawn Код:
pRespect,
and for the leveling up command do this
pawn Код:
CMD:levelup(playerid, params[])
{
    if(PlayerInfo[playerid][pLevel] == 1 & PlayerInfo[playerid][pRespect]  == 8)
    {
        PlayerInfo[playerid][pLevel] = 2;
        new str[128];
        format(str, sizeof(str), " Congratulations you're now Level %d", PlayerInfo[playerid][pLevel]);
        SendClientMessage(playerid, -1, str);
    } else {
        SendClientMessage(playerid, -1, "You don't have enough respect points!");
    }
}
Don't copy paste this,im guessing your enums,so adjust it to fit your script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)