29.07.2011, 01:38
I don't know, maybe a global variable for example:
Obviously, you'd need to save these in a player file if you want to keep them.
Then, maybe show the rank in a textdraw, you can then use the pRank variable in commands and shit, so if you wanted to show it in your stats command or something, or a command to show highest ranking players.
pawn Код:
new pRank[MAX_PLAYERS];
pawn Код:
if(Kills[killerid] >= 50)
{
if(pRank[killerid] == 0)
{
pRank[killerid] = 1;
SendClientMessage(killerid, whatever, "You have gained the blah blah rank!"); // You could maybe time this in a function so it shows when they spawn.
}
//run your rank code here
}
else if(Kills[killerid] >= 100)
{
//higher rank code
}