25.03.2018, 12:33
Your problem is that you mix between Global Textdraw and Player Textdraw
PHP код:
new PlayerText:textdraw2[MAX_PLAYERS];
new PlayerText:textdraw3[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
// WELCOME BACK
textdraw2[playerid] = CreatePlayerTextDraw(playerid, 634.500000, 311.187500, "Welcome back");
PlayerTextDrawLetterSize(playerid, textdraw2[playerid], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw2[playerid], 3);
PlayerTextDrawColor(playerid, textdraw2[playerid], -1);
PlayerTextDrawSetShadow(playerid, textdraw2[playerid], 0);
PlayerTextDrawSetOutline(playerid, textdraw2[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, textdraw2[playerid], 255);
PlayerTextDrawFont(playerid, textdraw2[playerid], 2);
PlayerTextDrawSetProportional(playerid, textdraw2[playerid], 1);
PlayerTextDrawSetShadow(playerid, textdraw2[playerid], 0);
textdraw3[playerid] = CreatePlayerTextDraw(playerid, 606.000000, 331.312500, "andrei !");
PlayerTextDrawLetterSize(playerid, textdraw3[playerid], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, textdraw3[playerid], 3);
PlayerTextDrawColor(playerid, textdraw3[playerid], -1);
PlayerTextDrawSetShadow(playerid, textdraw3[playerid], 0);
PlayerTextDrawSetOutline(playerid, textdraw3[playerid], -1);
PlayerTextDrawBackgroundColor(playerid, textdraw3[playerid], 255);
PlayerTextDrawFont(playerid, textdraw3[playerid], 2);
PlayerTextDrawSetProportional(playerid, textdraw3[playerid], 1);
PlayerTextDrawSetShadow(playerid, textdraw3[playerid], 0);
return 1;
}
public OnPlayerSpawn(playerid)
{
PlayerTextDrawShow(playerid, textdraw2[playerid]);
PlayerTextDrawShow(playerid, textdraw3[playerid]);
return 1;
}