12.03.2015, 15:10
Add this on top of your script:
In OnGameModeInit:
And under OnPlayerSpawn:
PHP Code:
new Text:Web[MAX_PLAYERS];
PHP Code:
for(new i=0;i<MAX_PLAYERS;i++)
{
Web[i] = TextDrawCreate(485.000000, 10.000000, "_");
TextDrawBackgroundColor(Web[i], 255);
TextDrawFont(Web[i], 3);
TextDrawLetterSize(Web[i], 0.330000, 1.200000);
TextDrawColor(Web[i], -1);
TextDrawSetOutline(Web[i], 1);
TextDrawSetProportional(Web[i], 1);
TextDrawSetShadow(Web[i],1);
PHP Code:
new string[128];
format(string, sizeof(string), "Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(playerid), GetPlayerScore(playerid), GetPlayerMoney(playerid), PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], Float:PlayerInfo[playerid][Kills]/Float:pDeaths);
TextDrawSetString(Web[playerid], string);
TextDrawShowForPlayer(playerid, Web[playerid]);