Advertisement
Guest User

Untitled

a guest
Nov 6th, 2010
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. //*********************************Skins****************************************
  2. //==============================By Elpiezas=====================================
  3. #include <a_samp>
  4. //==============================================================================
  5. new azteca[MAX_PLAYERS];
  6. new grove[MAX_PLAYERS];
  7. new vagos[MAX_PLAYERS];
  8. new ballas[MAX_PLAYERS];
  9. //==============================================================================
  10. public OnPlayerConnect(playerid)
  11. {
  12. azteca[playerid] = 0;
  13. grove[playerid] = 0;
  14. vagos[playerid] = 0;
  15. ballas[playerid] = 0;
  16. return 1;
  17. }
  18. public OnPlayerDisconnect(playerid, reason)
  19. {
  20. azteca[playerid] = 0;
  21. grove[playerid] = 0;
  22. vagos[playerid] = 0;
  23. ballas[playerid] = 0;
  24. return 1;
  25. }
  26. public OnPlayerCommandText(playerid, cmdtext[])
  27. {
  28. if (strcmp("/azteca", cmdtext, true, 10) == 0)
  29. {
  30. if(azteca[playerid] == 0)
  31. {
  32. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Azteca 1!");
  33. SetPlayerSkin(playerid, 115);
  34. azteca[playerid]++;
  35. grove[playerid] = 0;
  36. vagos[playerid] = 0;
  37. ballas[playerid] = 0;
  38. return 1;
  39. }
  40. if(azteca[playerid] == 1)
  41. {
  42. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Azteca 2!");
  43. SetPlayerSkin(playerid, 116);
  44. azteca[playerid]++;
  45. grove[playerid] = 0;
  46. vagos[playerid] = 0;
  47. ballas[playerid] = 0;
  48. return 1;
  49. }
  50. if(azteca[playerid] == 2)
  51. {
  52. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Azteca 3!");
  53. SetPlayerSkin(playerid, 114);
  54. azteca[playerid] = 0;
  55. grove[playerid] = 0;
  56. vagos[playerid] = 0;
  57. ballas[playerid] = 0;
  58. return 1;
  59. }
  60. return 1;
  61. }
  62. if (strcmp("/grove", cmdtext, true, 10) == 0)
  63. {
  64. if(grove[playerid] == 0)
  65. {
  66. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Grove 1!");
  67. SetPlayerSkin(playerid, 105);
  68. grove[playerid]++;
  69. azteca[playerid] = 0;
  70. vagos[playerid] = 0;
  71. ballas[playerid] = 0;
  72. return 1;
  73. }
  74. if(grove[playerid] == 1)
  75. {
  76. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Grove 2!");
  77. SetPlayerSkin(playerid, 106);
  78. grove[playerid]++;
  79. azteca[playerid] = 0;
  80. vagos[playerid] = 0;
  81. ballas[playerid] = 0;
  82. return 1;
  83. }
  84. if(grove[playerid] == 2)
  85. {
  86. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Grove 3!");
  87. SetPlayerSkin(playerid, 107);
  88. grove[playerid] = 0;
  89. azteca[playerid] = 0;
  90. vagos[playerid] = 0;
  91. ballas[playerid] = 0;
  92. return 1;
  93. }
  94. return 1;
  95. }
  96. if (strcmp("/ballas", cmdtext, true, 10) == 0)
  97. {
  98. if(ballas[playerid] == 0)
  99. {
  100. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Ballas 1!");
  101. SetPlayerSkin(playerid, 104);
  102. ballas[playerid]++;
  103. azteca[playerid] = 0;
  104. grove[playerid] = 0;
  105. vagos[playerid] = 0;
  106. return 1;
  107. }
  108. if(ballas[playerid] == 1)
  109. {
  110. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Ballas 2!");
  111. SetPlayerSkin(playerid, 102);
  112. ballas[playerid]++;
  113. azteca[playerid] = 0;
  114. grove[playerid] = 0;
  115. vagos[playerid] = 0;
  116. return 1;
  117. }
  118. if(ballas[playerid] == 2)
  119. {
  120. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Ballas 3!");
  121. SetPlayerSkin(playerid, 103);
  122. ballas[playerid] = 0;
  123. azteca[playerid] = 0;
  124. grove[playerid] = 0;
  125. vagos[playerid] = 0;
  126. return 1;
  127. }
  128. return 1;
  129. }
  130. if (strcmp("/vagos", cmdtext, true, 10) == 0)
  131. {
  132. if(vagos[playerid] == 0)
  133. {
  134. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Vagos 1!");
  135. SetPlayerSkin(playerid, 108);
  136. vagos[playerid]++;
  137. azteca[playerid] = 0;
  138. grove[playerid] = 0;
  139. ballas[playerid] = 0;
  140. return 1;
  141. }
  142. if(vagos[playerid] == 1)
  143. {
  144. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Vagos 2!");
  145. SetPlayerSkin(playerid, 109);
  146. vagos[playerid]++;
  147. azteca[playerid] = 0;
  148. grove[playerid] = 0;
  149. ballas[playerid] = 0;
  150. return 1;
  151. }
  152. if(vagos[playerid] == 2)
  153. {
  154. SendClientMessage(playerid, 0x0096FFFF, "Cambiaste tu Skin por Vagos 3!");
  155. SetPlayerSkin(playerid, 110);
  156. vagos[playerid] = 0;
  157. azteca[playerid] = 0;
  158. grove[playerid] = 0;
  159. ballas[playerid] = 0;
  160. return 1;
  161. }
  162. return 1;
  163. }
  164. return 0;
  165. }
  166. public OnPlayerSpawn(playerid)
  167. {
  168. if(azteca[playerid] == 1){SetPlayerSkin(playerid, 115);}
  169. if(azteca[playerid] == 2){SetPlayerSkin(playerid, 116);}
  170. if(azteca[playerid] == 3){SetPlayerSkin(playerid, 114);}
  171. if(grove[playerid] == 1){SetPlayerSkin(playerid, 105);}
  172. if(grove[playerid] == 2){SetPlayerSkin(playerid, 106);}
  173. if(grove[playerid] == 3){SetPlayerSkin(playerid, 107);}
  174. if(ballas[playerid] == 1){SetPlayerSkin(playerid, 104);}
  175. if(ballas[playerid] == 2){SetPlayerSkin(playerid, 102);}
  176. if(ballas[playerid] == 3){SetPlayerSkin(playerid, 103);}
  177. if(vagos[playerid] == 1){SetPlayerSkin(playerid, 108);}
  178. if(vagos[playerid] == 2){SetPlayerSkin(playerid, 109);}
  179. if(vagos[playerid] == 3){SetPlayerSkin(playerid, 110);}
  180. return 0;
  181. }
  182. //==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement