04.06.2013, 05:27
Hi guys .
guys i need to do,ranks with star
my code:
Like that :
can some one add to my script the stars please and sorry for my bead english
guys i need to do,ranks with star
my code:
Код:
forward PlayerStats(playerid); public PlayerStats(playerid) { if(GetPlayerScore(playerid)>=0) { Rank[playerid]=1; } if(GetPlayerScore(playerid)>=200) { Rank[playerid]=2; } if(GetPlayerScore(playerid)>=400) { Rank[playerid]=3; } if(GetPlayerScore(playerid)>=850) { Rank[playerid]=4; } if(GetPlayerScore(playerid)>=1500) { Rank[playerid]=5; } if(GetPlayerScore(playerid)>=2000) { Rank[playerid]=6; } if(GetPlayerScore(playerid)>=4500) { Rank[playerid]=7; } if(GetPlayerScore(playerid)>=8000) { Rank[playerid]=8; } if(GetPlayerScore(playerid)>=10000) { Rank[playerid]=9; } if(GetPlayerScore(playerid)>=15000) { Rank[playerid]=10; } if(GetPlayerScore(playerid)>=20000) { Rank[playerid]=11; } if(GetPlayerScore(playerid)>=30000) { Rank[playerid]=12; } if(GetPlayerScore(playerid)>=65000) { Rank[playerid]=13; } if(GetPlayerScore(playerid)>=80000) { Rank[playerid]=14; } if(GetPlayerScore(playerid)>=100000) { Rank[playerid]=15; } new String[1000]; new str_1[100]; if(Rank[playerid]==1) { str_1="Private"; } if(Rank[playerid]==2) { str_1="Corporal"; } if(Rank[playerid]==3) { str_1="Sergeant"; } if(Rank[playerid]==4) { str_1="Sergeant Major"; } if(Rank[playerid]==5) { str_1="Lieutenant"; } if(Rank[playerid]==6) { str_1="Lieutenant Major"; } if(Rank[playerid]==7) { str_1="Captain"; } if(Rank[playerid]==8) { str_1="Major"; } if(Rank[playerid]==9) { str_1="Colonial"; } if(Rank[playerid]==10) { str_1="General"; } if(Rank[playerid]==11) { str_1="General Of The Army"; } if(Rank[playerid]==12) { str_1="Master Of War"; } if(Rank[playerid]==13) { str_1="Warlord I"; } if(Rank[playerid]==14) { str_1="Warlord II"; } if(Rank[playerid]==15) { str_1="Warlord III"; } new str_2[100]; if(Team[playerid]==Latino) { format(str_2,sizeof(str_2), "Latino Guerrilla"); } if(Team[playerid]==Taliban) { format(str_2,sizeof(str_2), "Taliban"); } if(Team[playerid]==Europe) { format(str_2,sizeof(str_2), "Europian Alliance"); } if(Team[playerid]==USA) { format(str_2,sizeof(str_2), "United States Of America"); } if(Team[playerid]==Souviet) { format(str_2,sizeof(str_2), "Souviet Union"); } if(Team[playerid]==MERCENARY) { format(str_2,sizeof(str_2), "Mercenary"); } if(Team[playerid]==ADMIN) { format(str_2,sizeof(str_2), "Admin"); } new str_3[100]; if(Class[playerid]==1) { format(str_3,sizeof(str_3), "Soldier"); } if(Class[playerid]==2) { format(str_3,sizeof(str_3), "Sniper"); } if(Class[playerid]==3) { format(str_3,sizeof(str_3), "Medic"); } if(Class[playerid]==4) { format(str_3,sizeof(str_3), "Pyroman"); } if(Class[playerid]==5) { format(str_3,sizeof(str_3), "Engineer"); } if(Class[playerid]==6) { format(str_3,sizeof(str_3), "Paratrooper"); } if(Class[playerid]==7) { format(str_3,sizeof(str_3), "Pilot"); } if(Class[playerid]==8) { format(str_3,sizeof(str_3), "JetTrooper"); } if(Class[playerid]==9) { format(str_3,sizeof(str_3), "Scout"); } if(Class[playerid]==10) { format(str_3,sizeof(str_3), "Spy"); } if(Class[playerid]==11) { format(str_3,sizeof(str_3), "Operator"); } if(Class[playerid]==12) { format(str_3,sizeof(str_3), "Black Troop"); } if(Class[playerid]==13) { format(str_3,sizeof(str_3), "Assasian"); } if(Class[playerid]==14) { format(str_3,sizeof(str_3), "Sucider"); } if(Class[playerid]==15) { format(str_3,sizeof(str_3), "Rebot"); } if(Class[playerid]==16) { format(str_3,sizeof(str_3), "Landminer"); } if(Class[playerid]==17) { format(str_3,sizeof(str_3), "Chemist"); } if(Team[playerid]==MERCENARY) { format(str_3,sizeof(str_3), "N/A"); } if(Team[playerid]==ADMIN) { format(str_3,sizeof(str_3), "N/A"); } format(String,sizeof(String),"~p~Rank:~w~ %s %d/15 ~p~Score:~w~ %03d ~p~Team:~w~ %s ~p~Class:~w~ %s ~g~Kills:~w~ %d ~r~Deaths:~w~ %d", str_1, Rank[playerid], GetPlayerScore(playerid), str_2, str_3,pInfo[playerid][Kills],pInfo[playerid][Deaths]); TextDrawSetString(StartTextdraw_[7][playerid], String); return 1; }
can some one add to my script the stars please and sorry for my bead english