Lifer

Untitled

Jul 21st, 2011
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.43 KB | None | 0 0
  1. #include <a_samp>
  2. #if defined FILTERSCRIPT
  3. main ( )
  4. {
  5. }
  6.  
  7. print("\n----------------------------------");
  8. print("AdvanceDrift GM Feito Do 0% By:Lifer");
  9. print("----------------------------------\n");
  10. }
  11. new Contar = 0;
  12. #endif
  13. #pragma tabsize 0
  14. #define Lifer 9122
  15. public OnGameModeInit()
  16. {
  17. SetGameModeText("[AD]AdvanceDrift V1.0|BR|");
  18. AddPlayerClass(0, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  19. AddPlayerClass(135, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  20. AddPlayerClass(137, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  21. AddPlayerClass(181, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  22. AddPlayerClass(213, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  23. AddPlayerClass(212, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  24. AddPlayerClass(224, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  25. AddPlayerClass(230, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  26. AddPlayerClass(239, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  27. AddPlayerClass(249, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  28. AddPlayerClass(241, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  29. AddPlayerClass(49, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  30. AddPlayerClass(62, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  31. AddPlayerClass(66, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  32. AddPlayerClass(77, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  33. AddPlayerClass(82, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  34. AddPlayerClass(134, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  35. AddPlayerClass(33, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  36. AddPlayerClass(80, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  37. AddPlayerClass(87, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  38. AddPlayerClass(140, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  39. AddPlayerClass(139, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  40. AddPlayerClass(145, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  41. AddPlayerClass(146, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  42. AddPlayerClass(209, 2337.2092,-1215.9672,22.5000,175.4949, 24, 27, 30, 500, 600, 999);
  43. //*========================Começando Objetos AD=============================*//
  44. CreateObject(7392, -311.5270690918, 1547.0114746094, 87.656829833984, 0, 0, 0);
  45. CreateObject(7388, -259.28302001953, 1542.8149414063, 74.55436706543, 0, 0, 0);
  46. CreateObject(11417, -302.56790161133, 1585.6751708984, 79.233222961426, 0, 0, 0);
  47. CreateObject(7073, -347.14953613281, 1541.8885498047, 92.829254150391, 0, 0, 0);
  48. CreateObject(8483, -302.46112060547, 1380.44140625, 78.026298522949, 0, 0, 95.279479980469);
  49. CreateObject(9833, -311.52877807617, 1498.88671875, 78.099914550781, 0, 0, 0);
  50. CreateObject(9833, -293.25100708008, 1498.2421875, 77.962615966797, 0, 0, 0);
  51. CreateObject(2773, -302.10266113281, 1505.2584228516, 74.960037231445, 0, 0, 0);
  52. CreateObject(2773, -308.85382080078, 1505.1806640625, 74.960037231445, 0, 0, 0);
  53. CreateObject(2773, -295.7294921875, 1506.5366210938, 74.960037231445, 0, 0, 0);
  54. CreateObject(2695, -317.51593017578, 1536.3413085938, 75.293037414551, 0, 0, 0);
  55. CreateObject(2692, -318.83432006836, 1536.6060791016, 75.308303833008, 0, 0, 0);
  56. CreateObject(2691, -320.65072631836, 1536.0185546875, 75.502571105957, 0, 0, 0);
  57. CreateObject(2693, -316.56481933594, 1536.7497558594, 75.271675109863, 0, 0, 0);
  58. CreateObject(3471, -293.44781494141, 1507.9696044922, 75.837036132813, 0, 0, 95.279479980469);
  59. CreateObject(3471, -310.54925537109, 1505.7537841797, 75.837036132813, 0, 0, 95.278930664063);
  60. CreateObject(13831, -463.33868408203, 1631.2005615234, 47.313262939453, 0, 0, 59.549682617188);
  61. CreateObject(14467, -310.66134643555, 1536.4649658203, 77.296295166016, 0, 0, 0);
  62. CreateObject(3749, -300.89492797852, 1492.5146484375, 80.728012084961, 0, 0, 0);
  63. CreateObject(10009, -339.83737182617, 1553.8663330078, 75.123245239258, 0, 0, 265.98876953125);
  64. CreateObject(3578, -338.74258422852, 1543.20703125, 78.607460021973, 0, 0, 91.309509277344);
  65. CreateObject(3578, -338.96496582031, 1539.9708251953, 78.857460021973, 0, 0, 91.307373046875);
  66. CreateObject(3578, -343.19250488281, 1535.7952880859, 78.857460021973, 0, 0, 180.63208007813);
  67. CreateObject(3578, -346.57635498047, 1540.8826904297, 78.857460021973, 0, 0, 91.307373046875);
  68. CreateObject(16480, -399.69683837891, 1860.0787353516, 56.286773681641, 0, 0, 45.65478515625);
  69. CreateObject(1324, -398.24111938477, 2074.2255859375, 62.334190368652, 0, 0, 0);
  70. CreateObject(1324, -401.66375732422, 2089.3806152344, 62.334190368652, 0, 0, 0);
  71. CreateObject(1324, -401.6630859375, 2089.3798828125, 62.334190368652, 0, 0, 0);
  72. CreateObject(3578, -512.93591308594, 1974.9130859375, 60.357460021973, 0, 0, 188.57165527344);
  73. CreateObject(3578, -504.63049316406, 1976.2022705078, 60.357460021973, 0, 0, 188.5693359375);
  74. CreateObject(3578, -495.44931030273, 1978.1750488281, 60.357460021973, 0, 0, 198.49426269531);
  75. CreateObject(3578, -522.58471679688, 1974.0404052734, 60.357460021973, 0, 0, 180.62512207031);
  76. CreateObject(3578, -532.25592041016, 1975.9499511719, 60.357460021973, 0, 0, 158.78588867188);
  77. CreateObject(3578, -541.39300537109, 1981.3687744141, 60.357460021973, 0, 0, 136.95050048828);
  78. CreateObject(3578, -543.79528808594, 1989.3973388672, 60.357460021973, 0, 0, 67.475341796875);
  79. CreateObject(3578, -538.36291503906, 1997.8541259766, 60.357460021973, 0, 0, 37.697692871094);
  80. CreateObject(3578, -529.39398193359, 2003.0859375, 60.357460021973, 0, 0, 19.8291015625);
  81. CreateObject(3578, -523.22698974609, 1999.3951416016, 60.357460021973, 0, 0, 320.27526855469);
  82. CreateObject(3578, -514.48931884766, 1994.8489990234, 60.357460021973, 0, 0, 342.10827636719);
  83. CreateObject(3578, -504.75952148438, 1994.2037353516, 60.357460021973, 0, 0, 3.9381103515625);
  84. CreateObject(3471, -388.41784667969, 2066.1022949219, 61.835205078125, 0, 0, 37.714782714844);
  85. CreateObject(3471, -391.26913452148, 2069.9340820313, 61.835205078125, 0, 0, 37.710571289063);
  86. CreateObject(3471, -395.21224975586, 2071.978515625, 61.835205078125, 0, 0, 37.710571289063);
  87. CreateObject(689, -397.07241821289, 2064.8415527344, 61.423358917236, 0, 0, 0);
  88. CreateObject(6972, -363.66198730469, 1474.3422851563, 82.595092773438, 0, 0, 101.23449707031);
  89.  
  90.  
  91. return 1;
  92. }
  93.  
  94. public OnGameModeExit()
  95. {
  96. return 1;
  97. }
  98. public OnPlayerRequestClass(playerid, classid) // Onde Irá ir Para Escolher os Bonecos
  99. {
  100. SetPlayerPos(playerid,1025.5751,-2140.7637,39.2032); // PLAYER
  101. SetPlayerCameraPos(playerid,1019.7552,-2141.0266,37.7274); // CAMERA
  102. SetPlayerCameraLookAt(playerid,1021.9974,-2140.9907,38.3012); // CAMERA
  103. SetPlayerFacingAngle(playerid, 82.6125); // ANGULO
  104. ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0); // Animação No Inicio =D
  105. return 1;
  106. }
  107. public OnPlayerConnect(playerid){
  108.  
  109.  
  110. new pName[30], string[256];
  111. GetPlayerName(playerid, pName, 30);
  112. format(string, 256, "%s entrou no server AdvanceDrift :D.", pName);
  113. SendClientMessageToAll(0xFF0000AA ,string);
  114. return 1;
  115. }
  116.  
  117.  
  118.  
  119.  
  120. //Sair Do Serve
  121.  
  122. public OnPlayerDisconnect(playerid){
  123.  
  124. new pName[30], string[256];
  125. GetPlayerName(playerid, pName, 30);
  126. format(string, 256, "%s /q :(.", pName);
  127. SendClientMessageToAll(0xFF0000AA ,string);
  128. return 1;
  129. }
  130.  
  131. //Morto
  132. public OnPlayerDeath(playerid, killerid, reason) // MORRENDO
  133. {
  134. GameTextForPlayer(playerid,"~y~HaHaHaHa ~w~ Morreu!!!",4000,3); // MENSAGEM AO SER MORTO
  135. if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); // ALMENTADO 1 DE LEVEL AO MATAR 1
  136. SendDeathMessage(killerid, playerid, reason);
  137. return 1;
  138. }
  139.  
  140. public OnPlayerCommandText(playerid, cmdtext[])
  141. {
  142. if(strcmp(cmdtext, "/admins", true) == 0)
  143. {
  144. new Jogador[24];
  145. new count5;
  146. new msg[120];
  147. for(new i=0; i<MAX_PLAYERS; i++){
  148. if(IsPlayerConnected(i) && IsPlayerAdmin(i)){
  149. GetPlayerName(i,Jogador,24);
  150. format(msg,sizeof(msg),"Admins Online: %s", Jogador);
  151. SendClientMessage(playerid, 0xFFFFFFAA, msg);
  152. count5++;
  153. }
  154. }
  155. if(count5 == 0){
  156. SendClientMessage(playerid, 0xFFFFFFAA, "Nenhum Admin Online No Momento Aguarde.");
  157. }
  158. return 1;
  159. }
  160.  
  161. if (strcmp("/creditos", cmdtext, true, 10) == 0)
  162. {
  163. new creditos[300];
  164. strins(creditos,"\n",strlen(creditos));
  165. strins(creditos,"{7491F6}Criado Por :Lifer\n GM Feito Do 0%",strlen(creditos)); //MENSAGEM
  166. strins(creditos,"\n",strlen(creditos));
  167. ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000} ----------- Créditos ----------- ",creditos, "Fechar", ""); // 1 BOTAO APENAR
  168. return 1;
  169. }
  170. if(strcmp(cmdtext,"/ajuda",true)==0)
  171. {
  172. new ajuda[1000]; //
  173. strins(ajuda,"\n",strlen(ajuda));
  174. strins(ajuda,"{7491F6}/admins /creditos /teleportes /kill /grana \n",strlen(ajuda));
  175. strins(ajuda,"{7491F6}Para Administradores : /grana /admins\n",strlen(ajuda));
  176. ShowPlayerDialog(playerid,8439, DIALOG_STYLE_MSGBOX, "{F60000} ----------------- Ajuda --------------- ",ajuda, "Fechar", "");
  177. return 1;
  178. }
  179. return SendClientMessage(playerid, 0xAA3333AA, "[AdvanceDrift]Comando Desconhecido Pelo Servidor");
  180. }
Advertisement
Add Comment
Please, Sign In to add comment