03.12.2018, 18:57
So i made textdraws for a server logo. I tried my best and when i join the server the textdraw is not showing at all. I dont know what's wrong maybe the TextDrawSetString or idk..Here is the code.
Here is the global variable on top
Then i made a public to show textdraw
Then this is the last.
Here is the global variable on top
Код:
new PlayerText:hudjos;
Код:
forward LoadTextDrawsPlayerid(playerid);
public LoadTextDrawsPlayerid(playerid)
{
hudjos = CreatePlayerTextDraw(playerid, 637.174377, 432.083404, "NUME / RPG.NEVER-END.RO");
PlayerTextDrawLetterSize(playerid, hudjos, 0.365797, 1.629166);
PlayerTextDrawTextSize(playerid, hudjos, 26.000000, 0.000000);
PlayerTextDrawAlignment(playerid, hudjos, 3);
PlayerTextDrawColor(playerid, hudjos, -1);
PlayerTextDrawSetShadow(playerid, hudjos, -1);
PlayerTextDrawSetOutline(playerid, hudjos, -1);
PlayerTextDrawBackgroundColor(playerid, hudjos, 255);
PlayerTextDrawFont(playerid, hudjos, 2);
PlayerTextDrawSetProportional(playerid, hudjos, 1);
return 1;
}
Код:
public OnPlayerConnect(playerid)
{
new string[256], name;
LoadTextDrawsPlayerid(playerid);
format(string, sizeof(string), "%s / RPG.NEVER-END.RO", GetName(name));
TextDrawSetString(Text:hudjos, string);
TextDrawShowForPlayer(playerid, Text:hudjos);
ResetAccount(playerid); >>>> Dont mind this
LoadMapPlayerid(playerid); >>>> Dont mind this
return 1;
}


