03.12.2018, 19:23
Try this:
PHP код:
new PlayerText:hudjos[MAX_PLAYERS];
//Your Function
LoadTextDrawsPlayerid(playerid)
{
hudjos[playerid] = CreatePlayerTextDraw(playerid, 637.174377, 432.083404, "NUME / RPG.NEVER-END.RO");
PlayerTextDrawLetterSize(playerid, hudjos[playerid], 0.365797, 1.629166);
PlayerTextDrawTextSize(playerid, hudjos[playerid], 26.000000, 0.000000);
PlayerTextDrawAlignment(playerid, hudjos[playerid], 3);
PlayerTextDrawColor(playerid, hudjos[playerid], -1);
PlayerTextDrawSetShadow(playerid, hudjos[playerid], -1);
PlayerTextDrawSetOutline(playerid, hudjos[playerid], -1);
PlayerTextDrawBackgroundColor(playerid, hudjos[playerid], 255);
PlayerTextDrawFont(playerid, hudjos[playerid], 2);
PlayerTextDrawSetProportional(playerid, hudjos[playerid], 1);
PlayerTextDrawShow(playerid, hudjos[playerid]);
}
// OnPlayerConnect
public OnPlayerConnect(playerid)
{
new string[256], name;
LoadTextDrawsPlayerid(playerid);
format(string, sizeof(string), "%s / RPG.NEVER-END.RO", GetName(name));
TextDrawSetString(Text:hudjos, string);
ResetAccount(playerid); >>>> Dont mind this
LoadMapPlayerid(playerid); >>>> Dont mind this
return 1;
}