SA-MP Forums Archive
Textdraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw (/showthread.php?tid=445797)



Textdraw - Ananisiki - 23.06.2013

^^^^^^^^


Respuesta: Textdraw - JustBored - 23.06.2013

pawn Код:
new string[128];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsCnRAdmin(i))
        {
            format(string, sizeof string, "%s (%d)", PlayerName(i), i);
            TextDrawSetString(YourTextdraw, string);
        }
    }



Re: Textdraw - Lordzy - 23.06.2013

After setting the string just like 'JustBored' mentioned, you must use TextDrawShowForPlayer in case if you're using a global textdraw, or else PlayerTextDrawShow if it's a player textdraw.


Re: Textdraw - Ananisiki - 23.06.2013

^^^^^^^^