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(playerid, 641.375000, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 14.616667);
PlayerTextDrawTextSize(playerid, Textdraw0[playerid], -2.000000, 0.000000);
PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw0[playerid], 0);
PlayerTextDrawUseBox(playerid, Textdraw0[playerid], true);
PlayerTextDrawBoxColor(playerid, Textdraw0[playerid], 102);
PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw0[playerid], 0);
Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 641.375000, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.000000, 14.616667);
PlayerTextDrawTextSize(playerid, Textdraw1[playerid], -2.000000, 0.000000);
PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
PlayerTextDrawColor(playerid, Textdraw1[playerid], 0);
PlayerTextDrawUseBox(playerid, Textdraw1[playerid], true);
PlayerTextDrawBoxColor(playerid, Textdraw1[playerid], 102);
PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 0);
PlayerTextDrawFont(playerid, Textdraw1[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.