Guest User

skripta

a guest
Apr 11th, 2020
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.81 KB | None | 0 0
  1. //===============================SRW===========================================//
  2. //=============================================================================//
  3. //=============================================================================//
  4. //=============================================================================//
  5. //=INCLUDE=//
  6. #include <a_samp>
  7. #include <a_actor>
  8. #include <YSI\y_ini>
  9. #include <YSI\amx>
  10. #include <sscanf2>
  11. #include <zcmd>
  12. //=============================================================================//
  13. #define IME_SERVERA "Shock Gaming"
  14. #define VLASNIK_SERVERA "djole"
  15. #define VERZIJA_SERVERA "V0.0.1"
  16. #define SCM SendClientMessage
  17. #define SCMTA SendClientMessageToAll
  18. #define DIALOG_LOGIN 2
  19. #define DIALOG_REGISTER 1
  20. #define DIALOG_SUCCESS_1 3
  21. #define DIALOG_SUCCESS_2 4
  22. #define PATH "/Korisnici/%s.ini"
  23. #define UserPath PATH
  24. #define SSCANF_OnPlayerDisconnect sscanf2
  25. #define OcistiChatIgracu
  26. #define OcistiChatSvima
  27. //=============================================================================//
  28. //=DIALOG=//
  29. #define DIALOG_INPUT 1
  30. #define DIALOG_SELECT 2
  31. #define DIALOG_MSGBOX 3
  32. //=============================================================================//
  33. //=COLORS=//
  34. #define COL_GREY 0xAFAFAFAA
  35. #define COL_GREEN 0x33AA33AA
  36. #define COL_RED 0xAA3333AA
  37. #define COL_YELLOW 0xFFFF00AA
  38. #define COL_WHITE 0xFFFFFFAA
  39. #define COL_BLUE 0x0000BBAA
  40. #define COL_LIGHTBLUE 0x33CCFFAA
  41. #define COL_ORANGE 0xFF9900AA
  42. #define COL_RED 0xAA3333AA
  43. #define COL_LIME 0x10F441AA
  44. #define COL_MAGENTA 0xFF00FFFF
  45. #define COL_NAVY 0x000080AA
  46. #define COL_AQUA 0xF0F8FFAA
  47. #define COL_CRIMSON 0xDC143CAA
  48. #define COL_FLBLUE 0x6495EDAA
  49. #define COL_BISQUE 0xFFE4C4AA
  50. #define COL_BLACK 0x000000AA
  51. #define COL_CHARTREUSE 0x7FFF00AA
  52. #define COL_BROWN 0XA52A2AAA
  53. #define COL_CORAL 0xFF7F50AA
  54. #define COL_GOLD 0xB8860BAA
  55. #define COL_GREENYELLOW 0xADFF2FAA
  56. #define COL_INDIGO 0x4B00B0AA
  57. #define COL_IVORY 0xFFFF82AA
  58. #define COL_LAWNGREEN 0x7CFC00AA
  59. #define COL_SEAGREEN 0x20B2AAAA
  60. #define COL_LIMEGREEN 0x32CD32AA
  61. #define COL_MIDNIGHTBLUE 0X191970AA
  62. #define COL_MAROON 0x800000AA
  63. #define COL_OLIVE 0x808000AA
  64. #define COL_ORANGERED 0xFF4500AA
  65. #define COL_PINK 0xFFC0CBAA
  66. #define COL_SPRINGGREEN 0x00FF7FAA
  67. #define COL_TOMATO 0xFF6347AA
  68. #define COL_YELLOWGREEN 0x9ACD32AA
  69. #define COL_MEDIUMAQUA 0x83BFBFAA
  70. #define COL_MEDIUMMAGENTA 0x8B008BAA
  71. //=============================================================================//
  72. //=VARIABLE=//
  73.  
  74. main()
  75. {
  76. printf("\n----------------------------------");
  77. printf(" Ime servera : %s",IME_SERVERA);
  78. printf("----------------------------------\n");
  79. }
  80.  
  81. public OnGameModeInit()
  82. {
  83. SetGameModeText("v0.0.1");
  84. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  85. return 1;
  86. }
  87.  
  88. public OnGameModeExit()
  89. {
  90. return 1;
  91. }
  92.  
  93. public OnPlayerRequestClass(playerid, classid)
  94. {
  95. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  96. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  97. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  98. return 1;
  99. }
  100.  
  101. public OnPlayerConnect(playerid)
  102. {
  103. OcistiChatIgracu(playerid);
  104. return 1;
  105. }
  106.  
  107. public OnPlayerDisconnect(playerid, reason)
  108. {
  109. return 1;
  110. }
  111.  
  112. public OnPlayerSpawn(playerid)
  113. {
  114. OcistiChatIgracu(playerid);
  115. SetPlayerSkin(playerid, 294);
  116. SCM(playerid, COL_WHITE, "Dobrodosao na server.Uzivaj!");
  117. return 1;
  118. }
  119.  
  120. public OnPlayerDeath(playerid, killerid, reason)
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnVehicleSpawn(vehicleid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnVehicleDeath(vehicleid, killerid)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerText(playerid, text[])
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerCommandText(playerid, cmdtext[])
  141. {
  142. if (strcmp("/cc", cmdtext, true, 10) == 0)
  143. {
  144. OcistiChatSvima(playerid);
  145. return 1;
  146. }
  147. return 0;
  148. }
  149.  
  150. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnPlayerExitVehicle(playerid, vehicleid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerStateChange(playerid, newstate, oldstate)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerEnterCheckpoint(playerid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnPlayerLeaveCheckpoint(playerid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerEnterRaceCheckpoint(playerid)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnPlayerLeaveRaceCheckpoint(playerid)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnRconCommand(cmd[])
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnPlayerRequestSpawn(playerid)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnObjectMoved(objectid)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnPlayerObjectMoved(playerid, objectid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnPlayerPickUpPickup(playerid, pickupid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnVehicleMod(playerid, vehicleid, componentid)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnPlayerSelectedMenuRow(playerid, row)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnPlayerExitedMenu(playerid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  241. {
  242. return 1;
  243. }
  244.  
  245. public OnRconLoginAttempt(ip[], password[], success)
  246. {
  247. return 1;
  248. }
  249.  
  250. public OnPlayerUpdate(playerid)
  251. {
  252. return 1;
  253. }
  254.  
  255. public OnPlayerStreamIn(playerid, forplayerid)
  256. {
  257. return 1;
  258. }
  259.  
  260. public OnPlayerStreamOut(playerid, forplayerid)
  261. {
  262. return 1;
  263. }
  264.  
  265. public OnVehicleStreamIn(vehicleid, forplayerid)
  266. {
  267. return 1;
  268. }
  269.  
  270. public OnVehicleStreamOut(vehicleid, forplayerid)
  271. {
  272. return 1;
  273. }
  274.  
  275.  
  276. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  277. {
  278. return 1;
  279. }
  280.  
  281. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  282. {
  283. return 1;
  284. }
  285. //=============================================================================//
  286. //=STOCK=//
  287. stock OcistiChatIgracu
  288. {
  289. SCM(playerid,"");
  290. SCM(playerid,"");
  291. SCM(playerid,"");
  292. SCM(playerid,"");
  293. SCM(playerid,"");
  294. SCM(playerid,"");
  295. SCM(playerid,"");
  296. SCM(playerid,"");
  297. SCM(playerid,"");
  298. SCM(playerid,"");
  299. SCM(playerid,"");
  300. SCM(playerid,"");
  301. SCM(playerid,"");
  302. SCM(playerid,"");
  303. SCM(playerid,"");
  304. SCM(playerid,"");
  305. SCM(playerid,"");
  306. SCM(playerid,"");
  307. SCM(playerid,"");
  308. SCM(playerid,"");
  309. SCM(playerid,"");
  310. SCM(playerid,"");
  311. SCM(playerid,"");
  312. SCM(playerid,"");
  313. SCM(playerid,"");
  314. }
  315.  
  316. stock OcistiChatSvima
  317.  
  318. SCMTA(playerid,"");
  319. SCMTA(playerid,"");
  320. SCMTA(playerid,"");
  321. SCMTA(playerid,"");
  322. SCMTA(playerid,"");
  323. SCMTA(playerid,"");
  324. SCMTA(playerid,"");
  325. SCMTA(playerid,"");
  326. SCMTA(playerid,"");
  327. SCMTA(playerid,"");
  328. SCMTA(playerid,"");
  329. SCMTA(playerid,"");
  330. SCMTA(playerid,"");
  331. SCMTA(playerid,"");
  332. SCMTA(playerid,"");
  333. SCMTA(playerid,"");
  334. SCMTA(playerid,"");
  335. SCMTA(playerid,"");
  336. SCMTA(playerid,"");
  337. SCMTA(playerid,"");
  338. SCMTA(playerid,"");
  339. SCMTA(playerid,"");
  340. SCMTA(playerid,"");
  341. SCMTA(playerid,"");
  342. SCMTA(playerid,"");
  343. }
Advertisement
Add Comment
Please, Sign In to add comment