Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 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. return 1;
  92. }
  93.  
  94. public OnVehicleSpawn(vehicleid)
  95. {
  96. return 1;
  97. }
  98.  
  99. public OnVehicleDeath(vehicleid, killerid)
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnPlayerText(playerid, text[])
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnPlayerCommandText(playerid, cmdtext[])
  110. {
  111. //Qui inizia l'OnPlayerCommandText
  112. if (strcmp("/dammisoldi", cmdtext, true, 10) == 0)
  113. {
  114. SendClientMessage(playerid,COLOR_GREEN,"Ti sono stati dati 1000$");
  115. GivePlayerMoney(playerid,1000);
  116. return 1;
  117. }
  118. if (strcmp("/vogliovivere", cmdtext, true, 10) == 0)
  119. {
  120. SetPlayerHealth(playerid,100);
  121. SendClientMessage(playerid,COLOR_GREY,"La forza del Dio Drago ti ha rinvigorito");
  122. return 1;
  123. }
  124.  
  125. if (strcmp("/respawnveicoli", cmdtext, true, 10) == 0)
  126. {
  127. for(new i = 0; i < MAX_VEHICLES; i++)
  128. {
  129. SetVehicleToRespawn(i);
  130. SendClientMessageToAll(COLOR_AQUA,"Veicoli Respawnati da un'Admin");
  131. }
  132. return 1;
  133. }
  134.  
  135. if (strcmp("/uzi", cmdtext, true, 10) == 0)
  136. {
  137. SendClientMessage(playerid,COLOR_GREY,"Ti sei spawnato un'uzi");
  138. GivePlayerWeapon(playerid,28,300);
  139. return 1;
  140. }
  141.  
  142. if( strcmp (cmdtext,"/kickami",true ) == 0)
  143. {
  144. SendClientMessage(playerid,COLOR_RED,"Ti sei kickato");
  145. Kick(playerid);
  146. return 1;
  147. }
  148.  
  149. //Qui finisce l'OnPlayerCommandText
  150. return 0;
  151. }
  152.  
  153.  
  154. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnPlayerExitVehicle(playerid, vehicleid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnPlayerStateChange(playerid, newstate, oldstate)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerEnterCheckpoint(playerid)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnPlayerLeaveCheckpoint(playerid)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnPlayerEnterRaceCheckpoint(playerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerLeaveRaceCheckpoint(playerid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnRconCommand(cmd[])
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerRequestSpawn(playerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnObjectMoved(objectid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnPlayerObjectMoved(playerid, objectid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnPlayerPickUpPickup(playerid, pickupid)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnVehicleMod(playerid, vehicleid, componentid)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  225. {
  226. return 1;
  227. }
  228.  
  229. public OnPlayerSelectedMenuRow(playerid, row)
  230. {
  231. return 1;
  232. }
  233.  
  234. public OnPlayerExitedMenu(playerid)
  235. {
  236. return 1;
  237. }
  238.  
  239. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  240. {
  241. return 1;
  242. }
  243.  
  244. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  245. {
  246. return 1;
  247. }
  248.  
  249. public OnRconLoginAttempt(ip[], password[], success)
  250. {
  251. return 1;
  252. }
  253.  
  254. public OnPlayerUpdate(playerid)
  255. {
  256. return 1;
  257. }
  258.  
  259. public OnPlayerStreamIn(playerid, forplayerid)
  260. {
  261. return 1;
  262. }
  263.  
  264. public OnPlayerStreamOut(playerid, forplayerid)
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnVehicleStreamIn(vehicleid, forplayerid)
  270. {
  271. return 1;
  272. }
  273.  
  274. public OnVehicleStreamOut(vehicleid, forplayerid)
  275. {
  276. return 1;
  277. }
  278.  
  279. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  280. {
  281. return 1;
  282. }
  283.  
  284. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  285. {
  286. return 1;
  287. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement