Server-icon.pwn 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. This file was generated by Nickk's TextDraw editor script
  3. Nickk888 is the author of the NTD script
  4. */
  5. #include <a_samp>
  6. new Text:PublicTD[1];
  7. new PlayerText:PlayerTD[MAX_PLAYERS][1];
  8. public OnFilterScriptInit()
  9. {
  10. PublicTD[0] = TextDrawCreate(19.000000, 21.000000, "Stories");
  11. TextDrawFont(PublicTD[0], 0);
  12. TextDrawLetterSize(PublicTD[0], 0.337500, 1.500000);
  13. TextDrawTextSize(PublicTD[0], 400.000000, 17.000000);
  14. TextDrawSetOutline(PublicTD[0], 1);
  15. TextDrawSetShadow(PublicTD[0], 1);
  16. TextDrawAlignment(PublicTD[0], 1);
  17. TextDrawColor(PublicTD[0], -16776961);
  18. TextDrawBackgroundColor(PublicTD[0], 255);
  19. TextDrawBoxColor(PublicTD[0], 50);
  20. TextDrawUseBox(PublicTD[0], 0);
  21. TextDrawSetProportional(PublicTD[0], 1);
  22. TextDrawSetSelectable(PublicTD[0], 0);
  23. return 1;
  24. }
  25. public OnFilterScriptExit()
  26. {
  27. TextDrawDestroy(PublicTD[0]);
  28. return 1;
  29. }
  30. public OnPlayerConnect(playerid)
  31. {
  32. PlayerTD[playerid][0] = CreatePlayerTextDraw(playerid, 13.000000, 5.000000, "GTA");
  33. PlayerTextDrawFont(playerid, PlayerTD[playerid][0], 3);
  34. PlayerTextDrawLetterSize(playerid, PlayerTD[playerid][0], 0.525000, 2.850000);
  35. PlayerTextDrawTextSize(playerid, PlayerTD[playerid][0], 400.000000, 17.000000);
  36. PlayerTextDrawSetOutline(playerid, PlayerTD[playerid][0], 1);
  37. PlayerTextDrawSetShadow(playerid, PlayerTD[playerid][0], 1);
  38. PlayerTextDrawAlignment(playerid, PlayerTD[playerid][0], 1);
  39. PlayerTextDrawColor(playerid, PlayerTD[playerid][0], -1);
  40. PlayerTextDrawBackgroundColor(playerid, PlayerTD[playerid][0], 255);
  41. PlayerTextDrawBoxColor(playerid, PlayerTD[playerid][0], 50);
  42. PlayerTextDrawUseBox(playerid, PlayerTD[playerid][0], 0);
  43. PlayerTextDrawSetProportional(playerid, PlayerTD[playerid][0], 1);
  44. PlayerTextDrawSetSelectable(playerid, PlayerTD[playerid][0], 0);
  45. return 1;
  46. }
  47. public OnPlayerDisconnect(playerid, reason)
  48. {
  49. PlayerTextDrawDestroy(playerid, PlayerTD[playerid][0]);
  50. return 1;
  51. }
  52. public OnPlayerCommandText(playerid, cmdtext[])
  53. {
  54. if(!strcmp(cmdtext, "/tdtest", true))
  55. {
  56. TextDrawShowForPlayer(playerid, PublicTD[0]);
  57. PlayerTextDrawShow(playerid, PlayerTD[playerid][0]);
  58. return 1;
  59. }
  60. return 0;
  61. }