Advertisement
BE-Shomy

- tayloR ( Shomy Fixx )

Mar 31st, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. // ========================================================================== //
  2.  
  3. #define DIALOG_CREDITS 200 // Define za Dialog
  4.  
  5. // ========================================================================== //
  6.  
  7. new Text:TD_PRIMJER; // Define svoj TD!
  8.  
  9. // ========================================================================== //
  10.  
  11. public OnGameModeInit()
  12. {
  13. // Ovaj textdraw je samo za primjer!
  14.  
  15. TD_PRIMJER = TextDrawCreate(554.724609, 9.366662, "CREDITS");
  16. TextDrawLetterSize(TD_PRIMJER, 0.381250, 1.395832);
  17. TextDrawAlignment(TD_PRIMJER, 1);
  18. TextDrawColor(TD_PRIMJER, 156212991);
  19. TextDrawSetShadow(TD_PRIMJER, 0);
  20. TextDrawSetOutline(TD_PRIMJER, 1);
  21. TextDrawBackgroundColor(TD_PRIMJER, 255);
  22. TextDrawFont(TD_PRIMJER, 3);
  23. TextDrawSetProportional(TD_PRIMJER, 1);
  24. TextDrawSetShadow(TD_PRIMJER, 0);
  25. TextDrawSetSelectable(TD_PRIMJER, true);
  26. return 1;
  27. }
  28.  
  29. public OnPlayerConnect(playerid) { TextDrawShowForPlayer(playerid, TD_PRIMJER); SelectTextDraw(playerid, 0xFFFFFFFF); return 1; }
  30. // ========================================================================== //
  31.  
  32.  
  33. public OnPlayerClickTextDraw( playerid, Text:clickedid )
  34. {
  35. if( clickedid == TD_PRIMJER )
  36. {
  37. ShowPlayerDialog( playerid, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX, "SERVER - CREDITS", "Credits:\n\nIme_Prezime\nIme_Prezime\nIme_Prezime", "Zatvori", "" );
  38. }
  39. return 1;
  40. }
  41.  
  42. // ========================================================================== //
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. - tayloR ( Shomy Fixx )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement