Guest User

Untitled

a guest
Sep 17th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. //cmd
  2. CMD:buyphone(playerid, params[])
  3. {
  4. if(Player[playerid][Phone] == 1)
  5. {
  6. SCM(playerid, COLOR_LIGHTRED, "Vous avez déjà un téléphone");
  7. }
  8. else
  9. {
  10. TextDrawShowForPlayer(playerid, CHOIXTEXTCOLOR);
  11. TextDrawShowForPlayer(playerid, COLORPHONEBLACK);
  12. TextDrawShowForPlayer(playerid, COLORPHONEJAUNE);
  13. TextDrawShowForPlayer(playerid, COLORPHONEVERT);
  14. TextDrawShowForPlayer(playerid, COLORPHONEBLEU);
  15. TextDrawShowForPlayer(playerid, COLORPHONEORANGE);
  16. TextDrawShowForPlayer(playerid, PREVIEWCOLORPHONE);
  17. TextDrawShowForPlayer(playerid, BOUTONACHETERPHONE);
  18.  
  19. SelectTextDraw(playerid, 0xFF0000FF);
  20. }
  21. return 1;
  22. }
  23.  
  24.  
  25.  
  26.  
  27. //OnPlayerClickTextDraw
  28. else if(clickedid == COLORPHONEBLACK)
  29. {
  30. SCM(playerid, COLOR_GREEN, "Tu viens d'acheté un téléphone de couleur noir");
  31. TextDrawHideForPlayer(playerid, COLORPHONEBLACK);
  32. TextDrawHideForPlayer(playerid, COLORPHONEJAUNE);
  33. TextDrawHideForPlayer(playerid, COLORPHONEVERT);
  34. TextDrawHideForPlayer(playerid, COLORPHONEBLEU);
  35. TextDrawHideForPlayer(playerid, COLORPHONEORANGE);
  36. TextDrawHideForPlayer(playerid, PREVIEWCOLORPHONE);
  37. TextDrawHideForPlayer(playerid, BOUTONACHETERPHONE);
  38. TextDrawHideForPlayer(playerid, CHOIXTEXTCOLOR);
  39. Player[playerid][Phone] = 1;
  40. CancelSelectTextDraw(playerid);
  41. UpdatePlayerData(playerid);
  42. }
  43. else if(clickedid == COLORPHONEJAUNE)
  44. {
  45. SCM(playerid, COLOR_GREEN, "Tu viens d'acheté un téléphone de couleur jaune");
  46. TextDrawHideForPlayer(playerid, COLORPHONEBLACK);
  47. TextDrawHideForPlayer(playerid, COLORPHONEJAUNE);
  48. TextDrawHideForPlayer(playerid, COLORPHONEVERT);
  49. TextDrawHideForPlayer(playerid, COLORPHONEBLEU);
  50. TextDrawHideForPlayer(playerid, COLORPHONEORANGE);
  51. TextDrawHideForPlayer(playerid, PREVIEWCOLORPHONE);
  52. TextDrawHideForPlayer(playerid, BOUTONACHETERPHONE);
  53. TextDrawHideForPlayer(playerid, CHOIXTEXTCOLOR);
  54. Player[playerid][Phone] = 1;
  55. CancelSelectTextDraw(playerid);
  56. UpdatePlayerData(playerid);
  57. }
  58. else if(clickedid == COLORPHONEVERT)
  59. {
  60. SCM(playerid, COLOR_GREEN, "Tu viens d'acheté un téléphone de couleur vert");
  61. TextDrawHideForPlayer(playerid, COLORPHONEBLACK);
  62. TextDrawHideForPlayer(playerid, COLORPHONEJAUNE);
  63. TextDrawHideForPlayer(playerid, COLORPHONEVERT);
  64. TextDrawHideForPlayer(playerid, COLORPHONEBLEU);
  65. TextDrawHideForPlayer(playerid, COLORPHONEORANGE);
  66. TextDrawHideForPlayer(playerid, PREVIEWCOLORPHONE);
  67. TextDrawHideForPlayer(playerid, BOUTONACHETERPHONE);
  68. TextDrawHideForPlayer(playerid, CHOIXTEXTCOLOR);
  69. Player[playerid][Phone] = 1;
  70. CancelSelectTextDraw(playerid);
  71. UpdatePlayerData(playerid);
  72. }
  73. else if(clickedid == COLORPHONEORANGE)
  74. {
  75. SCM(playerid, COLOR_GREEN, "Tu viens d'acheté un téléphone de couleur orange");
  76. TextDrawHideForPlayer(playerid, COLORPHONEBLACK);
  77. TextDrawHideForPlayer(playerid, COLORPHONEJAUNE);
  78. TextDrawHideForPlayer(playerid, COLORPHONEVERT);
  79. TextDrawHideForPlayer(playerid, COLORPHONEBLEU);
  80. TextDrawHideForPlayer(playerid, COLORPHONEORANGE);
  81. TextDrawHideForPlayer(playerid, PREVIEWCOLORPHONE);
  82. TextDrawHideForPlayer(playerid, BOUTONACHETERPHONE);
  83. TextDrawHideForPlayer(playerid, CHOIXTEXTCOLOR);
  84. CancelSelectTextDraw(playerid);
  85. Player[playerid][Phone] = 1;
  86. UpdatePlayerData(playerid);
  87. }
  88. else if(clickedid == COLORPHONEBLEU)
  89. {
  90. SCM(playerid, COLOR_GREEN, "Tu viens d'acheté un téléphone de couleur bleu");
  91. TextDrawHideForPlayer(playerid, COLORPHONEBLACK);
  92. TextDrawHideForPlayer(playerid, COLORPHONEJAUNE);
  93. TextDrawHideForPlayer(playerid, COLORPHONEVERT);
  94. TextDrawHideForPlayer(playerid, COLORPHONEBLEU);
  95. TextDrawHideForPlayer(playerid, COLORPHONEORANGE);
  96. TextDrawHideForPlayer(playerid, PREVIEWCOLORPHONE);
  97. TextDrawHideForPlayer(playerid, BOUTONACHETERPHONE);
  98. TextDrawHideForPlayer(playerid, CHOIXTEXTCOLOR);
  99. CancelSelectTextDraw(playerid);
  100. Player[playerid][Phone] = 1;
  101. UpdatePlayerData(playerid);
  102. }
Advertisement
Add Comment
Please, Sign In to add comment