Oblivion_UFF

sss

Oct 30th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. new PlayerText:MSTD[MAX_PLAYERS];
  2.  
  3. MSTD[playerid] = CreatePlayerTextDraw(playerid, 293.600036, 247.146743, "0");
  4. PlayerTextDrawLetterSize(playerid, MSTD[playerid], 0.326, 1.654);
  5. PlayerTextDrawAlignment(playerid, MSTD[playerid], 1);
  6. PlayerTextDrawColor(playerid, MSTD[playerid], -1);
  7. PlayerTextDrawSetShadow(playerid, MSTD[playerid], 0);
  8. PlayerTextDrawSetOutline(playerid, MSTD[playerid], -1);
  9. PlayerTextDrawBackgroundColor(playerid, MSTD[playerid], 0x000000FF);
  10. PlayerTextDrawFont(playerid, MSTD[playerid], 1);
  11. PlayerTextDrawSetProportional(playerid, MSTD[playerid], 1);
  12.  
  13. forward MSTD_MSG(playerid, s_time, text[]);
  14. public MSTD_MSG(playerid, s_time, text[])
  15. {
  16. if(GetPVarInt(playerid, "MS_TDshown") != -1)
  17. {
  18. PlayerTextDrawHide(playerid, MSTD[playerid]);
  19. KillTimer(GetPVarInt(playerid, "MS_TDshown"));
  20. }
  21. PlayerTextDrawSetString(playerid, MSTD[playerid], text);
  22. PlayerTextDrawShow(playerid, MSTD[playerid]);
  23. SetPVarInt(playerid, "MS_TDshown", SetTimerEx("MSTD_Hide", s_time, false, "i", playerid));
  24. }
  25. // Info textdraw timer for hiding the textdraw
  26. forward MSTD_Hide(playerid);
  27. public MSTD_Hide(playerid)
  28. {
  29. SetPVarInt(playerid, "MS_TDshown", -1);
  30. PlayerTextDrawHide(playerid, MSTD[playerid]);
  31. }
Add Comment
Please, Sign In to add comment