ping TD
#5

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;
}
Reply


Messages In This Thread
ping TD - by sams90 - 03.03.2017, 14:40
Re: ping TD - by Edwin2801 - 03.03.2017, 14:46
Re: ping TD - by sams90 - 03.03.2017, 14:52
Re: ping TD - by Edwin2801 - 03.03.2017, 15:00
Re: ping TD - by LEOTorres - 03.03.2017, 15:17
Re: ping TD - by sams90 - 03.03.2017, 15:23
Re: ping TD - by PowerPC603 - 03.03.2017, 15:27
Re: ping TD - by LEOTorres - 03.03.2017, 15:39
Re: ping TD - by sams90 - 04.03.2017, 02:04
Re: ping TD - by Edwin2801 - 04.03.2017, 06:49

Forum Jump:


Users browsing this thread: 3 Guest(s)