Rank system
#1

Heey guys,

I made a rank system but when there are more players online you see the score of the other player.
I made it in a textdraw:
Код:
forward sc(playerid);
public sc(playerid)
{
	for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
			if(rank0[playerid]==1)
			{
			new xp;
			xp=GetPlayerScore(i);
			new string[50];
			format(string,sizeof(string),"XP:%d/100",xp);
			TextDrawSetString(ys,string);
			}
			if(rank1[playerid]==1)
			{
			new xp;
			xp=GetPlayerScore(i);
			new string[50];
			format(string,sizeof(string),"XP:%d/225",xp);
			TextDrawSetString(ys,string);
			}
			if(rank2[playerid]==1)
			{
			new xp;
			xp=GetPlayerScore(i);
			new string[50];
			format(string,sizeof(string),"XP:%d/400",xp);
			TextDrawSetString(ys,string);
			}
		}

	}
}
I added time so the rank stays updating.
Reply


Messages In This Thread
Rank system - by Admigo - 11.08.2011, 22:31
Re: Rank system - by antonio112 - 11.08.2011, 22:45
Re: Rank system - by Admigo - 11.08.2011, 23:50
Re: Rank system - by =WoR=Varth - 12.08.2011, 02:53

Forum Jump:


Users browsing this thread: 1 Guest(s)