TextDraw Help
#7

ill do the name textdraw for example you complete the rest

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

public OnFilterScriptInit()
{
    for(new i; i < MAX_PLAYERS; i ++)
    {
	    Textdraw0[i] = TextDrawCreate(471.000000, 116.000000, "Name:");
	    TextDrawBackgroundColor(Textdraw0[i], 255);
	    TextDrawFont(Textdraw0[i], 3);
	    TextDrawLetterSize(Textdraw0[i], 0.500000, 1.100000);
	    TextDrawColor(Textdraw0[i], -16776961);
	    TextDrawSetOutline(Textdraw0[i], 1);
	    TextDrawSetProportional(Textdraw0[i], 1);
    }
    return 1;
}

public OnPlayerConnect(playerid)
{
	new nametext[MAX_PLAYER_NAME+6], pname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, pname, sizeof(pname));
	format(nametext, sizeof(nametext), "Name: %s", pname);
	TextDrawSetString(Textdraw0[playerid], nametext);
    return 1;
}

public OnPlayerSpawn(playerid)
{
	TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
    return 1;
}
check the code again i changed the line in red color
Reply


Messages In This Thread
TextDraw Help - by RyderX - 01.01.2017, 21:46
Re: TextDraw Help - by BiosMarcel - 01.01.2017, 21:51
Re: TextDraw Help - by iLearner - 01.01.2017, 21:51
Re: TextDraw Help - by RyderX - 01.01.2017, 22:05
Re: TextDraw Help - by RyderX - 01.01.2017, 22:16
Re: TextDraw Help - by RyderX - 01.01.2017, 22:38
Re: TextDraw Help - by lackmail - 01.01.2017, 22:43
Re: TextDraw Help - by RyderX - 01.01.2017, 22:51
Re: TextDraw Help - by RyderX - 01.01.2017, 23:30
Re: TextDraw Help - by oMa37 - 02.01.2017, 00:19

Forum Jump:


Users browsing this thread: 1 Guest(s)