How would i to do this?
#19

Are you scripting this in a game-mode that already saves player stuff? Or in some standalone filterscript?

for the stats command you'd just need to do something like this:

pawn Код:
new rank[128];
if(pRank[playerid] == 1)
{
    rank = "Rank Name for Rank 1";
}
if(pRank[playerid] == 2)
{
    rank = "Rank name for rank 2";
}
if(etc. etc..)
{
    //another rank
}
else if(pRank[playerid] == 0) // unset .. no rank.
{
    rank = "No rank";
}
Then just use the "rank" variable in a formatted string:

pawn Код:
format(string, sizeof(string), "Player rank: %s", rank);
Then add that to the stats command. I'm sure you can make your own stats command
Reply


Messages In This Thread
How would i to do this? - by Shockey HD - 29.07.2011, 01:08
Re: How would i to do this? - by Famalamalam - 29.07.2011, 01:24
Re: How would i to do this? - by Shockey HD - 29.07.2011, 01:31
Re: How would i to do this? - by Famalamalam - 29.07.2011, 01:38
Re: How would i to do this? - by Shockey HD - 29.07.2011, 01:55
Re: How would i to do this? - by slymatt - 29.07.2011, 02:01
Re: How would i to do this? - by slymatt - 29.07.2011, 02:04
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:07
Re: How would i to do this? - by slymatt - 29.07.2011, 02:07
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:09
Re: How would i to do this? - by slymatt - 29.07.2011, 02:11
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:14
Re: How would i to do this? - by slymatt - 29.07.2011, 02:16
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:22
Re: How would i to do this? - by Shockey HD - 29.07.2011, 02:26
Re: How would i to do this? - by slymatt - 29.07.2011, 02:31
Re: How would i to do this? - by Famalamalam - 29.07.2011, 02:33
Re: How would i to do this? - by Shockey HD - 29.07.2011, 02:58
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:06
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:21
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:28
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:29
Re: How would i to do this? - by Famalamalam - 29.07.2011, 03:32
Re: How would i to do this? - by Shockey HD - 29.07.2011, 03:33

Forum Jump:


Users browsing this thread: 7 Guest(s)