code to get player position.
#6

Код:
new rank[MAX_PLAYERS];
for(new i = 0; i < MAX_PLAYERS; i++)
{
	for(new h = 0; h < 1000; h++) // 1000 = Max Score someone could get to be the #1 on the list.
	{
	    if(GetPlayerScore(i) >= 100) rank[i] = 10;
	    if(GetPlayerScore(i) >= 200) rank[i] = 9;
	    if(GetPlayerScore(i) >= 300) rank[i] = 8;
	    if(GetPlayerScore(i) >= 400) rank[i] = 7;
	    if(GetPlayerScore(i) >= 500) rank[i] = 6;
    }
}
Something like this perhaps?
Reply


Messages In This Thread
code to get player position. - by budelis - 13.09.2011, 13:16
Re: code to get player position. - by Kingunit - 13.09.2011, 13:36
Re: code to get player position. - by budelis - 13.09.2011, 16:40
Re: code to get player position. - by Zonoya - 13.09.2011, 16:47
Re: code to get player position. - by budelis - 13.09.2011, 18:41
Re: code to get player position. - by Berky - 13.09.2011, 18:55
Re: code to get player position. - by budelis - 14.09.2011, 15:15
Re: code to get player position. - by Universal - 14.09.2011, 15:21
Re: code to get player position. - by budelis - 15.09.2011, 12:52
Re: code to get player position. - by budelis - 16.09.2011, 18:04

Forum Jump:


Users browsing this thread: 2 Guest(s)