15.12.2009, 15:33
Hello yet again people, i was just wondering if you could help me with this, i'm using the new Progress Bar Filterscript, and i was wondering how i could do this, once you kill someone you get %s ammount of exp, once that exp has reached 100, you rank up, here are my enums.
And my Rank info
so i want it like each kill adds say 0.345 exp and then once exp == 100, it ranks up:
this is my rank function:
pawn Код:
//----//Rank Stuff//----//
enum pinfo
{
MinutesPlayed,
HoursPlayed,
Kills,
Visits,
Rank,
SaveStats,
}
new PInfo[MAX_PLAYERS][pinfo];
pawn Код:
//----//Requierments//----//
enum rinfo
{
RName[64],
RRequirement,
RStartMoney,
Float:RSpawnHealth,
Float:RSpawnArmour,
RSpawnWeapon,
RSpawnAmmo,
};
new RankInfo[MAX_RANKS][rinfo];
this is my rank function:
pawn Код:
AddRank(rankID, const Name[], Requirement, Startmoney, Float:SpawnHealth, Float:SpawnArmour, SpawnWeapon, SpawnAmmo);