Guest User

Untitled

a guest
Dec 21st, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.11 KB | None | 0 0
  1.  
  2.  
  3.  
  4. // INCLUDES
  5. #include <a_samp>
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. // DEFINES
  13. //Server
  14. #define GAMEMODE "BETA v0.1"
  15. #define MAP_NAME "Los Santos"
  16. #define SERVER_NAME "[0.3d]TIX Private Home Server"
  17. #define WEBSITE "www.sa-mp.com"
  18. #define VERSION "V0.1"
  19. #define LAST_UPDATE "16-12-2012"
  20. #define DEVELOPER "Tix"
  21. #define PASSWORD "priv4te"
  22. #define SCRIPT_LINES 5000
  23. //Users
  24.  
  25. //Colors
  26. #define COLOR_WHITE 0xFFFFFFFF
  27. #define COLOR_FADE1 0xE6E6E6E6
  28. #define COLOR_PM1 0xA65FC7FF
  29. #define COLOR_PM2 0xD35FC7FF
  30. #define COLOR_FADE2 0xC8C8C8C8
  31. #define COLOR_FADE3 0xAAAAAAAA
  32. #define COLOR_FADE4 0x8C8C8C8C
  33. #define COLOR_FADE5 0x6E6E6E6E
  34. #define COLOR_OOC 0xE0FFFFFF
  35. #define COLOR_GREY 0xAFAFAFFF
  36. #define COLOR_LIGHTGREEN 0xADFF2FFF
  37. #define COLOR_LIGHTRED 0xFF6347FF
  38. #define COLOR_DARKRED 0xAA3333FF
  39. #define COLOR_RED 0xFF0606FF
  40. #define COLOR_LIGHTBLUE 0x33CCFFFF
  41. #define COLOR_GREEN 0x33AA33FF
  42. #define COLOR_YELLOW 0xFFFF00FF
  43. #define COLOR_PURPLE 0xC2A2DAFF
  44. #define COLOR_ORANGE 0xFF9900FF
  45. #define COLOR_REPORT 0xFFFF91FF
  46. #define COLOR_RADIO 0x8D8DFFFF
  47. #define COLOR_DEPTRADIO 0xFFD700FF
  48. #define COLOR_BLUE 0x2641FEFF
  49. #define COLOR_MEDIC 0xFF8282FF
  50. #define COLOR_NEWBIE 0x7DAEFFFF
  51. #define COLOR_LIME 0x00FF00FF
  52. #define COLOR_NEWS 0x049C7100
  53. #define COLOR_CYAN 0x01FCFFFF
  54. #define COLOR_VIP 0xC93CCEFF
  55.  
  56. //0.3c Colors
  57. #define COL_EASY "{FFF1AF}"
  58. #define COL_DGREEN "{0E8C00}"
  59. #define COL_LOGIN "{98E090}"
  60. #define COL_WHITE "{FFFFFF}"
  61. #define COL_BLACK "{0E0101}"
  62. #define COL_GREY "{C3C3C3}"
  63. #define COL_GREEN "{6EF83C}"
  64. #define COL_RED "{F81414}"
  65. #define COL_YELLOW "{F3FF02}"
  66. #define COL_ORANGE "{F9B857}"
  67. #define COL_LIME "{B7FF00}"
  68. #define COL_CYAN "{00FFEE}"
  69. #define COL_LBLUE "{298ACF}"
  70. #define COL_BLUE "{0049FF}"
  71. #define COL_MAGENTA "{F300FF}"
  72. #define COL_VIOLET "{B700FF}"
  73. #define COL_PINK "{FF00EA}"
  74. #define COL_MARONE "{A90202}"
  75. #define COL_CMD "{B8FF02}"
  76. #define COL_PARAM "{3FCD02}"
  77. #define COL_SERVER "{AFE7FF}"
  78. #define COL_VALUE "{A3E4FF}"
  79. #define COL_RULE "{F9E8B7}"
  80. #define COL_RULE2 "{FBDF89}"
  81. #define COL_RWHITE "{FFFFFF}"
  82. #define COL_LGREEN "{9FE4AA}"
  83. #define COL_LRED "{DA7272}"
  84. #define COL_LRED2 "{C77D87}"
  85. #define COL_DYELLOW "{FAFA52}"
  86. #define COL_BROWN "{8C703F}"
  87. #define COL_SBLACK "{474747}"
  88. #define COL_GREEN2 "{ADADAD}"
  89. #define COL_DGREY "{616161}"
  90. #define COL_BLUE2 "{3660D1}"
  91.  
  92. //ENUM
  93.  
  94.  
  95.  
  96.  
  97. //FOWARD
  98.  
  99.  
  100.  
  101.  
  102.  
  103. // STOCKS
  104.  
  105.  
  106. stock ShowServerPassword()
  107. {
  108. new pass[128];
  109. if (strlen(PASSWORD) != 0)
  110. {
  111. format(pass, sizeof pass, "%s", PASSWORD);
  112. }
  113. else
  114. {
  115. pass = "None";
  116. }
  117. return pass;
  118. }
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. main()
  126. {
  127. print("_________________________________________________________________________");
  128. printf("> Server Name: %s", SERVER_NAME);
  129. printf("> Gamemode : %s ", GAMEMODE);
  130. printf("> Version: %s", VERSION);
  131. printf("> Map: %s", MAP_NAME);
  132. printf("> Website: %s", WEBSITE);
  133. printf("> Developer: %s", DEVELOPER);
  134. printf("> Last Update: %s", LAST_UPDATE);
  135. printf("> Lines: %d", SCRIPT_LINES);
  136. printf("> Password: %s", ShowServerPassword());
  137. print("_________________________________________________________________________");
  138. return 1;
  139. }
  140.  
  141.  
  142.  
  143. public OnGameModeInit()
  144. {
  145. SendRconCommand("hostname "SERVER_NAME"");
  146. SendRconCommand("weburl "WEBSITE"");
  147. SendRconCommand("mapname "MAP_NAME"");
  148. SetGameModeText(GAMEMODE);
  149. EnableStuntBonusForAll(0);
  150. DisableInteriorEnterExits();
  151. ShowPlayerMarkers(1);
  152. UsePlayerPedAnims();
  153. return 1;
  154. }
  155.  
  156. public OnGameModeExit()
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnPlayerRequestClass(playerid, classid)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnPlayerConnect(playerid)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnPlayerDisconnect(playerid, reason)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnPlayerSpawn(playerid)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnPlayerDeath(playerid, killerid, reason)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnVehicleSpawn(vehicleid)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnVehicleDeath(vehicleid, killerid)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnPlayerText(playerid, text[])
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerCommandText(playerid, cmdtext[])
  202. {
  203. return 0;
  204. }
  205.  
  206. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnPlayerExitVehicle(playerid, vehicleid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnPlayerStateChange(playerid, newstate, oldstate)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnPlayerEnterCheckpoint(playerid)
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerLeaveCheckpoint(playerid)
  227. {
  228. return 1;
  229. }
  230.  
  231. public OnPlayerEnterRaceCheckpoint(playerid)
  232. {
  233. return 1;
  234. }
  235.  
  236. public OnPlayerLeaveRaceCheckpoint(playerid)
  237. {
  238. return 1;
  239. }
  240.  
  241. public OnRconCommand(cmd[])
  242. {
  243. return 1;
  244. }
  245.  
  246. public OnPlayerRequestSpawn(playerid)
  247. {
  248. return 1;
  249. }
  250.  
  251. public OnObjectMoved(objectid)
  252. {
  253. return 1;
  254. }
  255.  
  256. public OnPlayerObjectMoved(playerid, objectid)
  257. {
  258. return 1;
  259. }
  260.  
  261. public OnPlayerPickUpPickup(playerid, pickupid)
  262. {
  263. return 1;
  264. }
  265.  
  266. public OnVehicleMod(playerid, vehicleid, componentid)
  267. {
  268. return 1;
  269. }
  270.  
  271. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  272. {
  273. return 1;
  274. }
  275.  
  276. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerSelectedMenuRow(playerid, row)
  282. {
  283. return 1;
  284. }
  285.  
  286. public OnPlayerExitedMenu(playerid)
  287. {
  288. return 1;
  289. }
  290.  
  291. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  292. {
  293. return 1;
  294. }
  295.  
  296. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  297. {
  298. return 1;
  299. }
  300.  
  301. public OnRconLoginAttempt(ip[], password[], success)
  302. {
  303. return 1;
  304. }
  305.  
  306. public OnPlayerUpdate(playerid)
  307. {
  308. return 1;
  309. }
  310.  
  311. public OnPlayerStreamIn(playerid, forplayerid)
  312. {
  313. return 1;
  314. }
  315.  
  316. public OnPlayerStreamOut(playerid, forplayerid)
  317. {
  318. return 1;
  319. }
  320.  
  321. public OnVehicleStreamIn(vehicleid, forplayerid)
  322. {
  323. return 1;
  324. }
  325.  
  326. public OnVehicleStreamOut(vehicleid, forplayerid)
  327. {
  328. return 1;
  329. }
  330.  
  331. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  332. {
  333. return 1;
  334. }
  335.  
  336. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  337. {
  338. return 1;
  339. }
Advertisement
Add Comment
Please, Sign In to add comment