daily pastebin goal
40%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. // Ping ----------
  6. new maxping = 300;
  7. // ---------------
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.     print("\n--------------------------------------");
  12.     print(" Blank Filterscript by your name here");
  13.     print("--------------------------------------\n");
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.     return 1;
  20. }
  21.  
  22. public OnPlayerRequestClass(playerid, classid)
  23. {
  24.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  25.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  26.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  27.     return 1;
  28. }
  29.  
  30. public OnPlayerConnect(playerid)
  31. {
  32.     return 1;
  33. }
  34.  
  35. public OnPlayerDisconnect(playerid, reason)
  36. {
  37.     return 1;
  38. }
  39.  
  40. public OnPlayerSpawn(playerid)
  41. {
  42.     return 1;
  43. }
  44.  
  45. public OnPlayerDeath(playerid, killerid, reason)
  46. {
  47.     return 1;
  48. }
  49.  
  50. public OnVehicleSpawn(vehicleid)
  51. {
  52.     return 1;
  53. }
  54.  
  55. public OnVehicleDeath(vehicleid, killerid)
  56. {
  57.     return 1;
  58. }
  59.  
  60. public OnPlayerText(playerid, text[])
  61. {
  62.     return 1;
  63. }
  64.  
  65. public OnPlayerCommandText(playerid, cmdtext[])
  66. {
  67.     if (strcmp("/ping", cmdtext, true, 10) == 0)
  68.     {
  69.         if(IsPlayerAdmin(playerid))
  70.         {
  71.             ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Ping", "Type the max ping below", "Select", "Close");
  72.         }
  73.         else
  74.         {
  75.             SendClientMessage(playerid, 0xFF6347AA, "You are not a RCON ADMIN!");
  76.         }
  77.         return 1;
  78.     }
  79.     return 0;
  80. }
  81.  
  82. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  83. {
  84.     return 1;
  85. }
  86.  
  87. public OnPlayerExitVehicle(playerid, vehicleid)
  88. {
  89.     return 1;
  90. }
  91.  
  92. public OnPlayerStateChange(playerid, newstate, oldstate)
  93. {
  94.     return 1;
  95. }
  96.  
  97. public OnPlayerEnterCheckpoint(playerid)
  98. {
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerLeaveCheckpoint(playerid)
  103. {
  104.     return 1;
  105. }
  106.  
  107. public OnPlayerEnterRaceCheckpoint(playerid)
  108. {
  109.     return 1;
  110. }
  111.  
  112. public OnPlayerLeaveRaceCheckpoint(playerid)
  113. {
  114.     return 1;
  115. }
  116.  
  117. public OnRconCommand(cmd[])
  118. {
  119.     return 1;
  120. }
  121.  
  122. public OnPlayerRequestSpawn(playerid)
  123. {
  124.     return 1;
  125. }
  126.  
  127. public OnObjectMoved(objectid)
  128. {
  129.     return 1;
  130. }
  131.  
  132. public OnPlayerObjectMoved(playerid, objectid)
  133. {
  134.     return 1;
  135. }
  136.  
  137. public OnPlayerPickUpPickup(playerid, pickupid)
  138. {
  139.     return 1;
  140. }
  141.  
  142. public OnVehicleMod(playerid, vehicleid, componentid)
  143. {
  144.     return 1;
  145. }
  146.  
  147. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnPlayerSelectedMenuRow(playerid, row)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerExitedMenu(playerid)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnRconLoginAttempt(ip[], password[], success)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnPlayerUpdate(playerid)
  183. {
  184.     new name[MAX_PLAYER_NAME];
  185.     GetPlayerName(playerid, name, sizeof(name));
  186.     new string[128];
  187.     if(GetPlayerPing(playerid) > maxping)
  188.     {
  189.         format(string,sizeof(string),"%s kicked by the server, reason: high ping(%d)", name, GetPlayerPing(playerid));
  190.         SendClientMessageToAll(0xFF6347AA,string);
  191.         Kick(playerid);
  192.     }
  193.     return 1;
  194. }
  195.  
  196. public OnPlayerStreamIn(playerid, forplayerid)
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnPlayerStreamOut(playerid, forplayerid)
  202. {
  203.     return 1;
  204. }
  205.  
  206. public OnVehicleStreamIn(vehicleid, forplayerid)
  207. {
  208.     return 1;
  209. }
  210.  
  211. public OnVehicleStreamOut(vehicleid, forplayerid)
  212. {
  213.     return 1;
  214. }
  215.  
  216. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  217. {
  218.     if(dialogid == 1)
  219.     {
  220.         new string[128];
  221.         if(strval(inputtext) < 300 && strval(inputtext) > 1000)
  222.         {
  223.             ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Ping", "Ping must be 300-1000", "Select", "Close");
  224.         }
  225.         else
  226.         {
  227.             maxping = strval(inputtext);
  228.             format(string,sizeof(string),"You changed the ping to %d", maxping);
  229.             ShowPlayerDialog(playerid, 22, DIALOG_STYLE_MSGBOX, "Ping", string, "Select", "Close");
  230.         }
  231.     }
  232.     return 1;
  233. }
  234.  
  235. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  236. {
  237.     return 1;
  238. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top