[FilterScript] Rank/EXP 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Rank/EXP System (
/showthread.php?tid=353225)
Rank/EXP System -
sanrock - 22.06.2012
Features
Rank system that needs the EXP system to rank up with textdraws
Files Needed
No files needed for this filterscript only the a_samp.
Downloads:
PasteBin
Picture
Re: Rank/EXP System -
Viggz - 23.06.2012
Seems like a good script, but some more information wouldnґt be wrong xD
Re: Rank/EXP System -
.Wicked - 23.06.2012
Is it possible to make the "10" a variable? Example at rank two you need 50 points to level up but on your FilterScript it will still say "X/10".
Re: Rank/EXP System -
sanrock - 23.06.2012
That means You are rank %d/10
Re: Rank/EXP System -
Rube - 25.06.2012
Cool ^_^
Re: Rank/EXP System -
David (Sabljak) - 17.07.2012
When i kill its stay on 0 / 10...
Re: Rank/EXP System -
Robert West - 17.07.2012
Good
Re: Rank/EXP System -
$mooth - 17.07.2012
not bad, simple and easy to edit
good for newbies
Re: Rank/EXP System -
Sinner - 17.07.2012
This is horrible and limited coding:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][EXP] == 50)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 150)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 300)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 400)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 500)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 650)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 800)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 1000)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 1500)
{
PlayerInfo[playerid][Rank] +=1;
}
if(PlayerInfo[playerid][EXP] == 3000)
{
PlayerInfo[playerid][Rank] +=1;
}
TextDrawShowForPlayer(playerid,Text:Ranked[playerid]);
return 1;
}
Something like this would do the job much better and woulden't restrict the player's level (just an example of an algoritme):
pawn Код:
public OnPlayerSpawn(playerid)
{
new rank = 0; // Final rank
new Float:neededexp = 50.0; // Starting exp needed
new Float:multiplier = 1.5; // Multiplier (exp will be 50 * multiplier for every raise of rank)
while(PlayerInfo[playerid][EXP] > neededexp) {
rank++;
neededexp *= multiplier;
}
PlayerInfo[playerid][Rank] = rank;
}
Re: Rank/EXP System -
ANTH1 - 17.07.2012
Good job! I like it