Advertisement
Guest User

Bare Neavy

a guest
Jan 20th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. #include <a_samp>
  2. #include <core>
  3. #include <float>
  4.  
  5. #pragma tabsize 0
  6.  
  7. main()
  8. {
  9. print("\n----------------------------------");
  10. print(" Bare Script\n");
  11. print("----------------------------------\n");
  12. }
  13.  
  14. public OnPlayerConnect(playerid)
  15. {
  16. GameTextForPlayer(playerid,"~w~SA-MP: ~r~Bare Script",5000,5);
  17. return 1;
  18. }
  19.  
  20. public OnPlayerCommandText(playerid, cmdtext[])
  21. {
  22. new idx;
  23. new cmd[256];
  24.  
  25. cmd = strtok(cmdtext, idx);
  26.  
  27. if(strcmp(cmd, "/yadayada", true) == 0) {
  28. return 1;
  29. }
  30.  
  31. return 0;
  32. }
  33.  
  34. public OnPlayerSpawn(playerid)
  35. {
  36. SetPlayerInterior(playerid,0);
  37. TogglePlayerClock(playerid,0);
  38. return 1;
  39. }
  40.  
  41. public OnPlayerDeath(playerid, killerid, reason)
  42. {
  43. return 1;
  44. }
  45.  
  46. SetupPlayerForClassSelection(playerid)
  47. {
  48. SetPlayerInterior(playerid,14);
  49. SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
  50. SetPlayerFacingAngle(playerid, 270.0);
  51. SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
  52. SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
  53. }
  54.  
  55. public OnPlayerRequestClass(playerid, classid)
  56. {
  57. SetupPlayerForClassSelection(playerid);
  58. return 1;
  59. }
  60.  
  61. public OnGameModeInit()
  62. {
  63. SetGameModeText("Bare Script");
  64. ShowPlayerMarkers(1);
  65. ShowNameTags(1);
  66. AllowAdminTeleport(1);
  67.  
  68. AddPlayerClass(265,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
  69.  
  70. //Objetos neavy
  71. CreateObject(16082, 2533.7, -1668.1, 20.6, 0, 0, 0);
  72. CreateObject(3399, 2546.1001, -1666, 26.8, 0, 0, 0);
  73. CreateObject(14791, 2555.69995, -1665.80005, 31.1, 0, 0, 0);
  74. CreateObject(2989, 2540.7, -1673, 15.2, 0, 0, 0);
  75. CreateObject(2986, 2505, -1693.4, 17, 0, 0, 350);
  76. CreateObject(2909, 2497.0469, -1618.458, 48.72143, 0, 0, 0);
  77. CreateObject(10184, 2557.5, -1665.7, 29.2, 0, 90, 0);
  78. CreateObject(10184, 2562.5, -1665.6, 29.2, 0, 90, 0);
  79. CreateObject(10184, 2556.2, -1671.5, 29.2, 0, 90, 270);
  80. CreateObject(10184, 2556.6001, -1659.5, 29.2, 0, 90, 270);
  81. CreateObject(10184, 2556.3999, -1660.9, 29.2, 0, 90, 270);
  82. CreateObject(2909, 2548.6001, -1669.2, 30.7, 0, 0, 270);
  83. CreateObject(2909, 2548.3999, -1663.4, 30.7, 0, 0, 270);
  84. CreateObject(2909, 2545.42871, -1677.99609, 9.2202, 0, 0, 0);
  85. CreateObject(987, 2548.1001, -1657.7, 29.4, 0, 0, 0);
  86. CreateObject(987, 2548.1001, -1663.2, 29.4, 0, 0, 90);
  87. CreateObject(987, 2553.3, -1657.7, 29.4, 0, 0, 0);
  88. CreateObject(987, 2565, -1657.7, 29.4, 0, 0, 270);
  89. CreateObject(987, 2564.8999, -1662.3, 29.4, 0, 0, 270);
  90. CreateObject(987, 2564.6001, -1674.2, 29.4, 0, 0, 180);
  91. CreateObject(987, 2559.8, -1674.1, 29.4, 0, 0, 179.995);
  92. CreateObject(987, 2548.1001, -1669.2, 29.4, 0, 0, 267.995);
  93. CreateObject(8407, 2521.3999, -1668, 15.4, 0, 0, 0);
  94. CreateObject(2599, 2519.6001, -1667.5, 14, 0, 0, 286);
  95. CreateObject(2714, 2520.2, -1668, 15.5, 0, 0, 270);
  96. CreateObject(2745, 2521.2, -1667.4, 18, 0, 0, 0);
  97. CreateObject(2745, 2521.2, -1668.6, 18, 0, 0, 182);
  98. CreateObject(8644, 2520.7, -1667.4, 21.3, 0, 0, 32);
  99. CreateObject(6865, 2520.5, -1667.6, 19.5, 0, 0, 318);
  100. CreateObject(8171, 88.3, 1552.8, 758.79999, 0, 0, 0);
  101. CreateObject(987, 68.8, 1495.5, 758.79999, 0, 0, 270);
  102. CreateObject(987, 69, 1507.2, 758.79999, 0, 0, 270);
  103. CreateObject(987, 69, 1519, 758.79999, 0, 0, 270);
  104. CreateObject(987, 68.9, 1530.8, 758.79999, 0, 0, 270);
  105. CreateObject(987, 68.8, 1542.8, 758.79999, 0, 0, 270);
  106. CreateObject(987, 68.8, 1554.9, 758.79999, 0, 0, 270);
  107. CreateObject(987, 68.8, 1567, 758.79999, 0, 0, 270);
  108. CreateObject(987, 68.9, 1578.9, 758.79999, 0, 0, 270);
  109. CreateObject(987, 69, 1590.5, 758.79999, 0, 0, 270);
  110. CreateObject(987, 69.1, 1602.4, 758.79999, 0, 0, 270);
  111. CreateObject(987, 69.2, 1614.3, 758.79999, 0, 0, 270);
  112. CreateObject(987, 69.1, 1621.7, 758.79999, 0, 0, 270);
  113. CreateObject(987, 81.3, 1621.6, 758.79999, 0, 0, 180);
  114. CreateObject(987, 93.3, 1621.5, 758.79999, 0, 0, 179.995);
  115. CreateObject(987, 105.1, 1621.4, 758.79999, 0, 0, 179.995);
  116. CreateObject(987, 107.8, 1610.2, 758.79999, 0, 0, 89.995);
  117. CreateObject(987, 108, 1621.5, 758.79999, 0, 0, 179.995);
  118. CreateObject(987, 107.7, 1598.3, 758.79999, 0, 0, 89.995);
  119. CreateObject(987, 107.6, 1586.4, 758.79999, 0, 0, 89.995);
  120. CreateObject(987, 107.4, 1574.4, 758.79999, 0, 0, 89.995);
  121. CreateObject(987, 107.4, 1562.7, 758.79999, 0, 0, 89.995);
  122. CreateObject(987, 107.3, 1551, 758.79999, 0, 0, 89.995);
  123. CreateObject(987, 107.3, 1539.4, 758.79999, 0, 0, 89.995);
  124. CreateObject(987, 107.2, 1527.6, 758.79999, 0, 0, 89.995);
  125. CreateObject(987, 107.2, 1515.8, 758.79999, 0, 0, 89.995);
  126. CreateObject(987, 107, 1504, 758.79999, 0, 0, 89.995);
  127. CreateObject(987, 106.9, 1491.9, 758.79999, 0, 0, 89.995);
  128.  
  129. return 1;
  130. }
  131.  
  132. strtok(const string[], &index)
  133. {
  134. new length = strlen(string);
  135. while ((index < length) && (string[index] <= ' '))
  136. {
  137. index++;
  138. }
  139.  
  140. new offset = index;
  141. new result[20];
  142. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  143. {
  144. result[index - offset] = string[index];
  145. index++;
  146. }
  147. result[index - offset] = EOS;
  148. return result;
  149. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement