Guest User

Untitled

a guest
Sep 18th, 2011
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. /*
  2. ********************************
  3. 3D Text Label
  4. ********************************
  5. Descrição:
  6. » Criar 3D Textos In-game
  7.  
  8. Versão:
  9. » 1.0
  10.  
  11. Developer:
  12. » [KoS]Shickcard
  13.  
  14. Special Thanks:
  15.  
  16. "Small" Larceny -qq
  17. SA-MP Team - For All.
  18.  
  19. */
  20.  
  21. #include <a_samp>
  22.  
  23. #define DialogInsert3D 1
  24.  
  25. #define Distancia 40.0
  26. #define PickupCor 0xF09C00AA
  27.  
  28. new
  29. Text3D: Texto,
  30. Float: P[3]
  31. ;
  32.  
  33. public OnFilterScriptInit()
  34. {
  35. print("3D Text In-game");
  36. return 1;
  37. }
  38.  
  39. main() return 1;
  40.  
  41.  
  42.  
  43. public OnPlayerCommandText(playerid, cmdtext[])
  44. {
  45. if(strcmp("/criar3d", cmdtext, true) == 0)
  46. {
  47. ShowPlayerDialog(playerid, DialogInsert3D, DIALOG_STYLE_INPUT, "{00FF00}.:: Texto » 3D Text Label ::.","Insira o texto da 3D Text Label:","Confirmar","Cancelar");
  48. return 1;
  49. }
  50. return 0;
  51. }
  52.  
  53. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  54. {
  55. if(dialogid == DialogInsert3D)
  56. {
  57. if(response)
  58. {
  59. GetPlayerPos(playerid, P[0], P[1], P[2]);
  60. Texto = Create3DTextLabel(inputtext, PickupCor, P[0], P[1], P[2], Distancia, 0);
  61. Update3DTextLabelText(Texto, PickupCor, inputtext);
  62. }
  63. }
  64. return 1;
  65. }
Advertisement
Add Comment
Please, Sign In to add comment