В OnGameModeInit
Code: Select all
Text[i] = TextDrawCreate(494.000000, 112.000000, "");
TextDrawBackgroundColor(Text[i], 255);
TextDrawFont(Text[i], 1);
TextDrawLetterSize(Text[i], 0.3,2);
TextDrawColor(Text[i], -1);
TextDrawSetOutline(Text[i], 1);
TextDrawSetProportional(Text[i], 1);
Text1[i] = TextDrawCreate(559.000000, 112.000000, "");
TextDrawBackgroundColor(Text1[i], 255);
TextDrawFont(Text1[i], 1);
TextDrawLetterSize(Text1[i], 0.3,2);
TextDrawColor(Text1[i], -1);
TextDrawSetOutline(Text1[i], 1);
TextDrawSetProportional(Text1[i], 1);
Code: Select all
TextDrawShowForPlayer(playerid, Text[playerid]), TextDrawShowForPlayer(playerid, Text1[playerid]);
Code: Select all
forward server();
public server()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new string[256];
new nxtlevel = PlayerInfo[i][Level]+1; // As soon as its executed, It adds +1 to your score.
new expamount = nxtlevel*levelexp;
format(string, sizeof(string), "~w~Level: ~r~%d", PlayerInfo[i][Level]);
TextDrawSetString(Text[i], string);
format(string, sizeof(string), "~w~Points: ~r~%d~w~/~w~%d", PlayerInfo[i][Exp], expamount);
TextDrawSetString(Text1[i], string);
}
}