TextDraw For Player
#1

Hello!

+Rep who helps me





PHP код:

Textdraw0
[playerid] = CreatePlayerTextDraw(playerid641.3750001.500000"usebox");
PlayerTextDrawLetterSize(playeridTextdraw0[playerid], 0.00000014.616667);
PlayerTextDrawTextSize(playeridTextdraw0[playerid], -2.0000000.000000);
PlayerTextDrawAlignment(playeridTextdraw0[playerid], 1);
PlayerTextDrawColor(playeridTextdraw0[playerid], 0);
PlayerTextDrawUseBox(playeridTextdraw0[playerid], true);
PlayerTextDrawBoxColor(playeridTextdraw0[playerid], 102);
PlayerTextDrawSetShadow(playeridTextdraw0[playerid], 0);
PlayerTextDrawSetOutline(playeridTextdraw0[playerid], 0);
PlayerTextDrawFont(playeridTextdraw0[playerid], 0);
Textdraw1[playerid] = CreatePlayerTextDraw(playerid641.3750001.500000"usebox");
PlayerTextDrawLetterSize(playeridTextdraw1[playerid], 0.00000014.616667);
PlayerTextDrawTextSize(playeridTextdraw1[playerid], -2.0000000.000000);
PlayerTextDrawAlignment(playeridTextdraw1[playerid], 1);
PlayerTextDrawColor(playeridTextdraw1[playerid], 0);
PlayerTextDrawUseBox(playeridTextdraw1[playerid], true);
PlayerTextDrawBoxColor(playeridTextdraw1[playerid], 102);
PlayerTextDrawSetShadow(playeridTextdraw1[playerid], 0);
PlayerTextDrawSetOutline(playeridTextdraw1[playerid], 0);
PlayerTextDrawFont(playeridTextdraw1[playerid], 0); 
How to make this code works on the server and where to place it ? (I need it for the player only) when he connects


And then when he spawns It Get's Gone

Please help me I'll REP ++
Reply
#2

Under OnPlayerConnect.
Reply
#3

Place it under OnGameModeInIt.
And use ShowTextDrawForPlayer to show it.
Reply
#4

okay.. but i need it when he spawns it clears
Reply
#5

pawn Код:
public OnGameModeInit()(playerid)
Add your whole textdraw functions..
pawn Код:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
}
pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
}

PS: Sorry for editing later.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)