Level up, respect points & payday 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: Level up, respect points & payday system. (
/showthread.php?tid=440569)
Level up, respect points & payday system. -
DanishHaq - 30.05.2013
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.
Re: Level up, respect points & payday system. -
DanishHaq - 30.05.2013
Page 2 - UP!
Re: Level up, respect points & payday system. -
mahdi499 - 30.05.2013
For the Respect Points and level up system,
You can add this to your enum
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