Textdraw help
#4

Код:
new Text: Textdraw[MAX_PLAYERS];

public RemoveTextdraw (id) {
    TextDrawDestroy (Textdraw[id]);
    return 1;
}

forward RemoveTextdraw ();

public OnPlayerDeath (playerid, killerid, reason) {
    if (killerid != INVALID_PLAYER_ID) {
        new string[100];
        format (string, sizeof string, "+%i", TextPoints[killerid]);
        Textdraw [killerid] = TextDrawCreate (0.0, 0.0, string);
        TextDrawShowForPlayer (killerid, Textdraw [killerid]);
        SetTimerEx("RemoveTextdraw", 3000, false, "i", killerid);
    }
    return 1;
}
Reply


Messages In This Thread
Textdraw help - by tarez - 22.10.2012, 02:09
Re: Textdraw help - by [HK]Ryder[AN] - 22.10.2012, 03:42
Re: Textdraw help - by tarez - 22.10.2012, 14:02
Re: Textdraw help - by XRabbit - 22.10.2012, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)