11.08.2011, 22:31
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:
I added time so the rank stays updating.
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); } } } }