Advertisement
Guest User

Untitled

a guest
Mar 8th, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. //Include
  2. #include <a_samp>
  3. #include <ocmd>
  4. #include <sscanf2>
  5. #include <a_mysql>
  6. //Variabili
  7. new dbhandle;
  8.  
  9. //Define
  10. #if defined FILTERSCRIPT
  11. #define COLOR_GREY 0xAFAFAFAA
  12. #define COLOR_GREEN 0x33AA33AA
  13. #define COLOR_RED 0xAA3333AA
  14. #define COLOR_YELLOW 0xFFFF00AA
  15. #define COLOR_WHITE 0xFFFFFFAA
  16. #define COLOR_BLUE 0x0000BBAA
  17. #define COLOR_LIGHTBLUE 0x33CCFFAA
  18. #define COLOR_ORANGE 0xFF9900AA
  19. #define COLOR_RED 0xAA3333AA
  20. #define COLOR_LIME 0x10F441AA
  21. #define COLOR_MAGENTA 0xFF00FFFF
  22. #define COLOR_NAVY 0x000080AA
  23. #define COLOR_AQUA 0xF0F8FFAA
  24. #define COLOR_CRIMSON 0xDC143CAA
  25. #define COLOR_FLBLUE 0x6495EDAA
  26. #define COLOR_BISQUE 0xFFE4C4AA
  27. #define COLOR_BLACK 0x000000AA
  28. #define COLOR_CHARTREUSE 0x7FFF00AA
  29. #define COLOR_BROWN 0XA52A2AAA
  30. #define COLOR_CORAL 0xFF7F50AA
  31. #define COLOR_GOLD 0xB8860BAA
  32. #define COLOR_GREENYELLOW 0xADFF2FAA
  33. #define COLOR_INDIGO 0x4B00B0AA
  34. #define COLOR_IVORY 0xFFFF82AA
  35. #define COLOR_LAWNGREEN 0x7CFC00AA
  36. #define COLOR_SEAGREEN 0x20B2AAAA
  37. #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
  38. #define COLOR_MIDNIGHTBLUE 0X191970AA
  39. #define COLOR_MAROON 0x800000AA
  40. #define COLOR_OLIVE 0x808000AA
  41. #define COLOR_ORANGERED 0xFF4500AA
  42. #define COLOR_PINK 0xFFC0CBAA // - Light light pink
  43. #define COLOR_SEAGREEN 0x2E8B57AA
  44. #define COLOR_SPRINGGREEN 0x00FF7FAA
  45. #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
  46. #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
  47. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  48. #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
  49. //MySQL
  50. #define db_host "localhost"
  51. #define db_user "samp"
  52. #define db_pass "mysqlpassword"
  53. #define db_db "samp
  54.  
  55. public OnFilterScriptInit()
  56. {
  57. print("\n--------------------------------------");
  58. print(" Gamemoderp");
  59. print("--------------------------------------\n");
  60. return 1;
  61. }
  62.  
  63. public OnFilterScriptExit()
  64. {
  65. return 1;
  66. }
  67.  
  68. #else
  69.  
  70. main()
  71. {
  72. print("\n----------------------------------");
  73. print(" Gamemoderp");
  74. print("----------------------------------\n");
  75. }
  76.  
  77. #endif
  78.  
  79. public OnGameModeInit()
  80. {
  81. SetGameModeText("gmrp");
  82. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  83.  
  84. //MySQL
  85. dbhandle = mysql_connect(db_host,db_user,db_db,db_pass);
  86. return 1;
  87. }
  88.  
  89. public OnGameModeExit()
  90. {
  91. mysql_close(dbhandle);
  92. return 1;
  93. }
  94.  
  95. public OnPlayerRequestClass(playerid, classid)
  96. {
  97. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  98. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  99. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  100. return 1;
  101. }
  102.  
  103. public OnPlayerConnect(playerid)
  104. {
  105. return 1;
  106. }
  107.  
  108. public OnPlayerDisconnect(playerid, reason)
  109. {
  110. return 1;
  111. }
  112.  
  113. public OnPlayerSpawn(playerid)
  114. {
  115. return 1;
  116. }
  117.  
  118. public OnPlayerDeath(playerid, killerid, reason)
  119. {
  120. return 1;
  121. }
  122.  
  123. public OnVehicleSpawn(vehicleid)
  124. {
  125. return 1;
  126. }
  127.  
  128. public OnVehicleDeath(vehicleid, killerid)
  129. {
  130. return 1;
  131. }
  132.  
  133. public OnPlayerText(playerid, text[])
  134. {
  135. return 1;
  136. }
  137.  
  138. //Comandi
  139.  
  140. ocmd:pm(playerid,params[])
  141. {
  142. new pID,text[128];
  143. if(sscanf(params,"is[128]",pID,text))return SendClientMessage(playerid,0xAA3333AA,"INFO: /pm [playerid] [testo]");
  144. SendClientMessage(pID,0xAA3333AA,text);
  145. return 1;
  146. }
  147.  
  148. ocmd:riavvia(playerid,params[])
  149. {
  150. SendRconCommand("gmx");
  151. return 1;
  152. }
  153.  
  154. ocmd:test(playerid,params[])
  155. {
  156. SendClientMessage(playerid,0xAA3333AA,"Hai fatto il comando /test");
  157. return 1;
  158. }
  159. public OnPlayerCommandText(playerid, cmdtext[])
  160. {
  161. return 0;
  162. }
  163.  
  164. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerExitVehicle(playerid, vehicleid)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnPlayerStateChange(playerid, newstate, oldstate)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnPlayerEnterCheckpoint(playerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerLeaveCheckpoint(playerid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerEnterRaceCheckpoint(playerid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerLeaveRaceCheckpoint(playerid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnRconCommand(cmd[])
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnPlayerRequestSpawn(playerid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnObjectMoved(objectid)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerObjectMoved(playerid, objectid)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnPlayerPickUpPickup(playerid, pickupid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnVehicleMod(playerid, vehicleid, componentid)
  225. {
  226. return 1;
  227. }
  228.  
  229. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  230. {
  231. return 1;
  232. }
  233.  
  234. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  235. {
  236. return 1;
  237. }
  238.  
  239. public OnPlayerSelectedMenuRow(playerid, row)
  240. {
  241. return 1;
  242. }
  243.  
  244. public OnPlayerExitedMenu(playerid)
  245. {
  246. return 1;
  247. }
  248.  
  249. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  250. {
  251. return 1;
  252. }
  253.  
  254. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  255. {
  256. return 1;
  257. }
  258.  
  259. public OnRconLoginAttempt(ip[], password[], success)
  260. {
  261. return 1;
  262. }
  263.  
  264. public OnPlayerUpdate(playerid)
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnPlayerStreamIn(playerid, forplayerid)
  270. {
  271. return 1;
  272. }
  273.  
  274. public OnPlayerStreamOut(playerid, forplayerid)
  275. {
  276. return 1;
  277. }
  278.  
  279. public OnVehicleStreamIn(vehicleid, forplayerid)
  280. {
  281. return 1;
  282. }
  283.  
  284. public OnVehicleStreamOut(vehicleid, forplayerid)
  285. {
  286. return 1;
  287. }
  288.  
  289. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  290. {
  291. return 1;
  292. }
  293.  
  294. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  295. {
  296. return 1;
  297. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement