01.01.2017, 22:43
ill do the name textdraw for example you complete the rest
check the code again i changed the line in red color
Код:
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; }