PDA

View Full Version : Textdraw


Ananisiki
23/06/2013, 01:50 AM
^^^^^^^^

JustBored
23/06/2013, 03:40 AM
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);
}
}

Lordzy
23/06/2013, 04:19 AM
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.

Ananisiki
23/06/2013, 10:02 PM
^^^^^^^^