06.09.2013, 16:56
pawn Код:
forward OnScriptUpdate();
public OnScriptUpdate()
{
new iString[200], Float: ratio;
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
ratio = floatdiv(PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths]);
format(iString, sizeof(iString), "~r~~h~~h~Kills:~y~~h~%d ~r~~h~~h~K/D:~y~~h~%.2f ~r~~h~~h~Kills:~y~~h~%d", PlayerInfo[playerid][pKills], ratio, PlayerInfo[playerid][pDeaths]);
PlayerTextDrawSetString(playerid, Textdraw3, iString);
}
}