Those text are called Textdraw. I recommend that you use a FS that create textdraw in-game. Search the filterscript section.
|
new string[24];
format(string, sizeof(string), "Rank: %s", GetRankName(i));
Ranks[i] = TextDrawCreate(497.000000, 137.0000, string);
TextDrawBackgroundColor(Ranks[i], 255);
TextDrawFont(Ranks[i], 2);
TextDrawLetterSize(Ranks[i], 0.5000, 1.0000);
TextDrawColor(Ranks[i], -1);
TextDrawSetOutline(Ranks[i], 1);
TextDrawSetProportional(Ranks[i], 1);
stock GetRankName(playerid)
{
new str3[64];
if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 99) str3 = ("Private");
if (GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) <= 299) str3 = ("Lance Corporal");
if (GetPlayerScore(playerid) >= 300 && GetPlayerScore(playerid) <= 499) str3 = ("Corporal");
if (GetPlayerScore(playerid) >= 500 && GetPlayerScore(playerid) <= 999) str3 = ("Sergeant");
if (GetPlayerScore(playerid) >= 1000 && GetPlayerScore(playerid) <= 1499) str3 = ("Staff Sergeant");
if (GetPlayerScore(playerid) >= 1500 && GetPlayerScore(playerid) <= 1999) str3 = ("Warrant Officer");
if (GetPlayerScore(playerid) >= 2000 && GetPlayerScore(playerid) <= 2499) str3 = ("Lieutenant");
if (GetPlayerScore(playerid) >= 2500 && GetPlayerScore(playerid) <= 4999) str3 = ("Captain");
if (GetPlayerScore(playerid) >= 5000 && GetPlayerScore(playerid) <= 9999) str3 = ("Major");
if (GetPlayerScore(playerid) >= 7000) str3 = ("General");
if (GetPlayerScore(playerid) >= 10000 && GetPlayerScore(playerid) <= 9999) str3 = ("Field Marshal");
return str3;
}
if (GetPlayerScore(playerid) >= 0 || GetPlayerScore(playerid) <= 99) str3 = ("Private");
TextDrawShowForPlayer(playerid, Scores[playerid]);
TextDrawShowForPlayer(playerid, Kill[playerid]);
TextDrawShowForPlayer(playerid, Death[playerid]);
TextDrawShowForPlayer(playerid, Ranks[playerid]);