03.03.2017, 15:17
Here, this should display the PING above the armour bar:
Код:
new Text:textid;
public OnGameModeInit()
{
textid = TextDrawCreate(545.0, 27.5, "");
TextDrawColor(textid, 0xAFAFAFAA);
return 1;
}
public OnPlayerUpdate (playerid)
{
new ping;
new string[128];
ping = GetPlayerPing (playerid);
format (string, sizeof(string), "PING: %d", ping);
TextDrawSetString(textid, string);
TextDrawShowForPlayer(playerid, textid);
return 1;
}

