SA-MP Forums Archive
TextDraw For Player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDraw For Player (/showthread.php?tid=478292)



TextDraw For Player - Eliminator - 29.11.2013

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 ++


Re: TextDraw For Player - dannyk0ed - 29.11.2013

Under OnPlayerConnect.


Re: TextDraw For Player - Avi Raj - 29.11.2013

Place it under OnGameModeInIt.
And use ShowTextDrawForPlayer to show it.


Re: TextDraw For Player - Eliminator - 29.11.2013

okay.. but i need it when he spawns it clears


Re: TextDraw For Player - SilentSoul - 29.11.2013

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.