Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <foreach>
  7.  
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" Blank Filterscript by your name here");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" Blank Gamemode by your name here");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34.  
  35. public OnGameModeInit()
  36. {
  37. // Don't use these lines if it's a filterscript
  38. SetGameModeText("Blank Script");
  39. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  40. return 1;
  41. }
  42.  
  43. public OnGameModeExit()
  44. {
  45. return 1;
  46. }
  47.  
  48. public OnPlayerRequestClass(playerid, classid)
  49. {
  50. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  52. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  53. return 1;
  54. }
  55.  
  56. public OnPlayerConnect(playerid)
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnPlayerDisconnect(playerid, reason)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerSpawn(playerid)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnPlayerDeath(playerid, killerid, reason)
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnVehicleSpawn(vehicleid)
  77. {
  78. return 1;
  79. }
  80.  
  81. public OnVehicleDeath(vehicleid, killerid)
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerText(playerid, text[])
  87. {
  88.  
  89. new message[128];
  90. strreplace(string[], find, replace);
  91.  
  92.  
  93.  
  94. return 0;
  95. }
  96. stock strreplace(message, ":D", " śmieje się")
  97. {
  98. for(new i=0; string[i]; i++)
  99. {
  100. if(string[i] == find)
  101. {
  102. string[i] = replace;
  103. }
  104. }
  105. }
  106.  
  107. stock GetName(playerid)
  108. {
  109. new
  110. name[24];
  111. GetPlayerName(playerid, name, sizeof(name));
  112. strreplace(name, '_', ' ');
  113. return name;
  114. }
  115.  
  116.  
  117. public OnPlayerCommandText(playerid, cmdtext[])
  118. {
  119. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  120. {
  121. // Do something here
  122. return 1;
  123. }
  124. return 0;
  125. }
  126.  
  127. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerExitVehicle(playerid, vehicleid)
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnPlayerStateChange(playerid, newstate, oldstate)
  138. {
  139. return 1;
  140. }
  141.  
  142. public OnPlayerEnterCheckpoint(playerid)
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnPlayerLeaveCheckpoint(playerid)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerEnterRaceCheckpoint(playerid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnPlayerLeaveRaceCheckpoint(playerid)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnRconCommand(cmd[])
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnPlayerRequestSpawn(playerid)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnObjectMoved(objectid)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnPlayerObjectMoved(playerid, objectid)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnPlayerPickUpPickup(playerid, pickupid)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnVehicleMod(playerid, vehicleid, componentid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerSelectedMenuRow(playerid, row)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerExitedMenu(playerid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnRconLoginAttempt(ip[], password[], success)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnPlayerUpdate(playerid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnPlayerStreamIn(playerid, forplayerid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnPlayerStreamOut(playerid, forplayerid)
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnVehicleStreamIn(vehicleid, forplayerid)
  243. {
  244. return 1;
  245. }
  246.  
  247. public OnVehicleStreamOut(vehicleid, forplayerid)
  248. {
  249. return 1;
  250. }
  251.  
  252. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  253. {
  254. return 1;
  255. }
  256.  
  257. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  258. {
  259. return 1;
  260. }
  261. stock ProxDetector(Float:radi, playerid, string[],color)
  262. {
  263. new Float:x,Float:y,Float:z;
  264. GetPlayerPos(playerid,x,y,z);
  265. foreach(Player,i)
  266. {
  267. if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
  268. {
  269. SendClientMessage(i,color,string);
  270. }
  271. }
  272. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement