| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- /*
- This file was generated by Nickk's TextDraw editor script
- Nickk888 is the author of the NTD script
- */
- #include <a_samp>
- new Text:PublicTD[1];
- new PlayerText:PlayerTD[MAX_PLAYERS][1];
- public OnFilterScriptInit()
- {
- PublicTD[0] = TextDrawCreate(19.000000, 21.000000, "Stories");
- TextDrawFont(PublicTD[0], 0);
- TextDrawLetterSize(PublicTD[0], 0.337500, 1.500000);
- TextDrawTextSize(PublicTD[0], 400.000000, 17.000000);
- TextDrawSetOutline(PublicTD[0], 1);
- TextDrawSetShadow(PublicTD[0], 1);
- TextDrawAlignment(PublicTD[0], 1);
- TextDrawColor(PublicTD[0], -16776961);
- TextDrawBackgroundColor(PublicTD[0], 255);
- TextDrawBoxColor(PublicTD[0], 50);
- TextDrawUseBox(PublicTD[0], 0);
- TextDrawSetProportional(PublicTD[0], 1);
- TextDrawSetSelectable(PublicTD[0], 0);
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawDestroy(PublicTD[0]);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- PlayerTD[playerid][0] = CreatePlayerTextDraw(playerid, 13.000000, 5.000000, "GTA");
- PlayerTextDrawFont(playerid, PlayerTD[playerid][0], 3);
- PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][0], 0.525000, 2.850000);
- PlayerTextDrawTextSize(playerid, PlayerTD[playerid][0], 400.000000, 17.000000);
- PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][0], 1);
- PlayerTextDrawAlignment(playerid, PlayerTD[playerid][0], 1);
- PlayerTextDrawColor(playerid, PlayerTD[playerid][0], -1);
- PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][0], 255);
- PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][0], 50);
- PlayerTextDrawUseBox(playerid, PlayerTD[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][0], 1);
- PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][0], 0);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- PlayerTextDrawDestroy(playerid, PlayerTD[playerid][0]);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/tdtest", true))
- {
- TextDrawShowForPlayer(playerid, PublicTD[0]);
- PlayerTextDrawShow(playerid, PlayerTD[playerid][0]);
- return 1;
- }
- return 0;
- }
|