Martex

HELP

Jul 17th, 2016
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. public textdraw()
  2. {
  3. // You decrease the start time here
  4. EventStartTime--;
  5.  
  6. // Check if we need to start the event
  7. if(EventStartTime == 0)
  8. {
  9. /*StartYourEvent;*/
  10. KillTimer(EventStartTimer );
  11. TextDrawHideForAll(TDEditor_TD[1]);
  12. }
  13.  
  14. else
  15. {
  16. new string[1243];
  17. // Edit the text draw with the correct time
  18. format(string, sizeof(string), "The event will start in %d seconds", EventStartTime);
  19. TextDrawSetString(TDEditor_TD[0], string);
  20. TextDrawShowForAll(TDEditor_TD[1]);
  21. }
  22. }
  23.  
  24. ///////TeXTDRAWS//////
  25. TDEditor_TD[0] = TextDrawCreate(426.800079, 1.839988, "Event_Cry_DM_Will_Start_After~n~10_seconds_Type_/event_to_join");
  26. TextDrawLetterSize(TDEditor_TD[0], 0.400000, 1.600000);
  27. TextDrawTextSize(TDEditor_TD[0], 635.000000, 0.000000);
  28. TextDrawAlignment(TDEditor_TD[0], 1);
  29. TextDrawColor(TDEditor_TD[0], -1);
  30. TextDrawUseBox(TDEditor_TD[0], 1);
  31. TextDrawBoxColor(TDEditor_TD[0], 30975);
  32. TextDrawSetShadow(TDEditor_TD[0], 0);
  33. TextDrawSetOutline(TDEditor_TD[0], 0);
  34. TextDrawBackgroundColor(TDEditor_TD[0], 255);
  35. TextDrawFont(TDEditor_TD[0], 1);
  36. TextDrawSetProportional(TDEditor_TD[0], 1);
  37. TextDrawSetShadow(TDEditor_TD[0], 0);
  38. //============//
  39.  
  40. TDEditor_TD[1] = TextDrawCreate(426.800079, 1.839988, "Event_Cry_DM_Will_Start_After~n~9_seconds_Type_/event_to_join");
  41. TextDrawLetterSize(TDEditor_TD[1], 0.400000, 1.600000);
  42. TextDrawTextSize(TDEditor_TD[1], 635.000000, 0.000000);
  43. TextDrawAlignment(TDEditor_TD[1], 1);
  44. TextDrawColor(TDEditor_TD[1], -1);
  45. TextDrawUseBox(TDEditor_TD[1], 1);
  46. TextDrawBoxColor(TDEditor_TD[1], 30975);
  47. TextDrawSetShadow(TDEditor_TD[1], 0);
  48. TextDrawSetOutline(TDEditor_TD[1], 0);
  49. TextDrawBackgroundColor(TDEditor_TD[1], 255);
  50. TextDrawFont(TDEditor_TD[1], 1);
  51. TextDrawSetProportional(TDEditor_TD[1], 1);
  52. TextDrawSetShadow(TDEditor_TD[1], 0);
Advertisement
Add Comment
Please, Sign In to add comment