Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.30 KB | None | 0 0
  1. #include <a_samp>
  2. #pragma tabsize 0
  3.  
  4. #define COLOR_GREY 0xAFAFAFAA
  5. #define COLOR_GREEN 0x33AA33AA
  6. #define COLOR_RED 0xAA3333AA
  7. #define COLOR_YELLOW 0xFFFF00AA
  8. #define COLOR_WHITE 0xFFFFFFAA
  9. #define COLOR_BLUE 0x0000BBAA
  10. #define COLOR_LIGHTBLUE 0x33CCFFAA
  11. #define COLOR_ORANGE 0xFF9900AA
  12. #define COLOR_RED 0xAA3333AA
  13. #define COLOR_LIME 0x10F441AA
  14. #define COLOR_MAGENTA 0xFF00FFFF
  15. #define COLOR_NAVY 0x000080AA
  16. #define COLOR_AQUA 0xF0F8FFAA
  17. #define COLOR_CRIMSON 0xDC143CAA
  18. #define COLOR_FLBLUE 0x6495EDAA
  19. #define COLOR_BISQUE 0xFFE4C4AA
  20. #define COLOR_BLACK 0x000000AA
  21. #define COLOR_CHARTREUSE 0x7FFF00AA
  22. #define COLOR_BROWN 0XA52A2AAA
  23. #define COLOR_CORAL 0xFF7F50AA
  24. #define COLOR_GOLD 0xB8860BAA
  25. #define COLOR_GREENYELLOW 0xADFF2FAA
  26. #define COLOR_INDIGO 0x4B00B0AA
  27. #define COLOR_IVORY 0xFFFF82AA
  28. #define COLOR_LAWNGREEN 0x7CFC00AA
  29. #define COLOR_SEAGREEN 0x20B2AAAA
  30. #define COLOR_LIMEGREEN 0x32CD32AA
  31. #define COLOR_MIDNIGHTBLUE 0X191970AA
  32. #define COLOR_MAROON 0x800000AA
  33. #define COLOR_OLIVE 0x808000AA
  34.  
  35. new PlayerMorto[MAX_PLAYERS];
  36.  
  37. main()
  38. {
  39. }
  40.  
  41. public OnGameModeInit()
  42. {
  43. CreateVehicle(417,1371.0245,420.2487,19.5782,153.7033,0,0,2);
  44. return 1;
  45. }
  46.  
  47. public OnGameModeExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. public OnPlayerRequestClass(playerid, classid)
  53. {
  54. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  55. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  56. return 1;
  57. }
  58.  
  59. public OnPlayerConnect(playerid)
  60. {
  61. SendClientMessage(playerid,COLOR_RED,"Benvenuto su Undead-Nightmare Zombie RolePlay");
  62. PlayerMorto[playerid]=0;
  63. return 1;
  64. }
  65.  
  66. public OnPlayerDisconnect(playerid, reason)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnPlayerSpawn(playerid)
  72. {
  73. if(PlayerMorto[playerid]>1)
  74. {
  75. SetPlayerPos(playerid,1216.4232,289.4235,19.5547);
  76. PlayerMorto[playerid]=0;
  77. }
  78. else
  79. {
  80. SetPlayerPos(playerid,1373.0747,405.3322,19.9555);
  81. SetPlayerSkin(playerid,161);
  82. }
  83. return 1;
  84. }
  85.  
  86. public OnPlayerDeath(playerid, killerid, reason)
  87. {
  88. SendClientMessage(playerid,COLOR_RED,"Sei ferito gravemente e sei stato portato all'ospedale,ti vengono sottratti 100Euro per le spese mediche!");
  89. GetPlayerMoney (playerid);
  90. SetPlayerPos(playerid,1216.4232,289.4235,19.5547);
  91. PlayerMorto[playerid]=1;
  92. return 1;
  93. }
  94.  
  95. public OnVehicleSpawn(vehicleid)
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnVehicleDeath(vehicleid, killerid)
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnPlayerText(playerid, text[])
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnPlayerCommandText(playerid, cmdtext[])
  111. {
  112. //Qui inizia l'OnPlayerCommandText
  113. if (strcmp("/dammisoldi", cmdtext, true, 10) == 0)
  114. {
  115. SendClientMessage(playerid,COLOR_GREEN,"Ti sono stati dati 1000$");
  116. GivePlayerMoney(playerid,1000);
  117. return 1;
  118. }
  119. if (strcmp("/vogliovivere", cmdtext, true, 10) == 0)
  120. {
  121. SetPlayerHealth(playerid,100);
  122. SendClientMessage(playerid,COLOR_GREY,"La forza del Dio Drago ti ha rinvigorito");
  123. return 1;
  124. }
  125.  
  126. if (strcmp("/respawnveicoli", cmdtext, true, 10) == 0)
  127. {
  128. for(new i = 0; i < MAX_VEHICLES; i++)
  129. {
  130. SetVehicleToRespawn(i);
  131. SendClientMessageToAll(COLOR_AQUA,"Veicoli Respawnati da un'Admin");
  132. }
  133. return 1;
  134. }
  135.  
  136. if (strcmp("/uzi", cmdtext, true, 10) == 0)
  137. {
  138. SendClientMessage(playerid,COLOR_GREY,"Ti sei spawnato un'uzi");
  139. GivePlayerWeapon(playerid,28,300);
  140. return 1;
  141. }
  142.  
  143. if( strcmp (cmdtext,"/kickami",true ) == 0)
  144. {
  145. SendClientMessage(playerid,COLOR_RED,"Ti sei kickato");
  146. Kick(playerid);
  147. return 1;
  148. }
  149.  
  150. //Qui finisce l'OnPlayerCommandText
  151. return 0;
  152. }
  153.  
  154.  
  155. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerExitVehicle(playerid, vehicleid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerStateChange(playerid, newstate, oldstate)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnPlayerEnterCheckpoint(playerid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerLeaveCheckpoint(playerid)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnPlayerEnterRaceCheckpoint(playerid)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnPlayerLeaveRaceCheckpoint(playerid)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnRconCommand(cmd[])
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnPlayerRequestSpawn(playerid)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnObjectMoved(objectid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnPlayerObjectMoved(playerid, objectid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerPickUpPickup(playerid, pickupid)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnVehicleMod(playerid, vehicleid, componentid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnPlayerSelectedMenuRow(playerid, row)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnPlayerExitedMenu(playerid)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnRconLoginAttempt(ip[], password[], success)
  251. {
  252. return 1;
  253. }
  254.  
  255. public OnPlayerUpdate(playerid)
  256. {
  257. return 1;
  258. }
  259.  
  260. public OnPlayerStreamIn(playerid, forplayerid)
  261. {
  262. return 1;
  263. }
  264.  
  265. public OnPlayerStreamOut(playerid, forplayerid)
  266. {
  267. return 1;
  268. }
  269.  
  270. public OnVehicleStreamIn(vehicleid, forplayerid)
  271. {
  272. return 1;
  273. }
  274.  
  275. public OnVehicleStreamOut(vehicleid, forplayerid)
  276. {
  277. return 1;
  278. }
  279.  
  280. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  281. {
  282. return 1;
  283. }
  284.  
  285. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  286. {
  287. return 1;
  288. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement