Guest User

Untitled

a guest
Jul 29th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.72 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.  
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.     print("\n--------------------------------------");
  12.     print(" FS By K7ep3Ris");
  13.     print("--------------------------------------\n");
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.     return 1;
  20. }
  21.  
  22. #endif
  23.  
  24. public OnPlayerRequestClass(playerid, classid)
  25. {
  26.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  27.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  28.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  29.     return 1;
  30. }
  31.  
  32. public OnPlayerConnect(playerid)
  33. {
  34.     return 1;
  35. }
  36.  
  37. public OnPlayerDisconnect(playerid, reason)
  38. {
  39.     return 1;
  40. }
  41.  
  42. public OnPlayerSpawn(playerid)
  43. {
  44.     return 1;
  45. }
  46.  
  47. public OnPlayerDeath(playerid, killerid, reason)
  48. {
  49.     return 1;
  50. }
  51.  
  52. public OnVehicleSpawn(vehicleid)
  53. {
  54.     return 1;
  55. }
  56.  
  57. public OnVehicleDeath(vehicleid, killerid)
  58. {
  59.     return 1;
  60. }
  61.  
  62. public OnPlayerText(playerid, text[])
  63. {
  64.     return 1;
  65. }
  66.  
  67. public OnPlayerCommandText(playerid, cmdtext[])
  68. {
  69.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  70.     {
  71.         // Do something here
  72.         return 1;
  73.     }
  74.     return 0;
  75. }
  76.  
  77. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  78. {
  79.     return 1;
  80. }
  81.  
  82. public OnPlayerExitVehicle(playerid, vehicleid)
  83. {
  84.     return 1;
  85. }
  86.  
  87. public OnPlayerStateChange(playerid, newstate, oldstate)
  88. {
  89.     return 1;
  90. }
  91.  
  92. public OnPlayerEnterCheckpoint(playerid)
  93. {
  94.     return 1;
  95. }
  96.  
  97. public OnPlayerLeaveCheckpoint(playerid)
  98. {
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerEnterRaceCheckpoint(playerid)
  103. {
  104.     return 1;
  105. }
  106.  
  107. public OnPlayerLeaveRaceCheckpoint(playerid)
  108. {
  109.     return 1;
  110. }
  111.  
  112. public OnRconCommand(cmd[])
  113. {
  114.     return 1;
  115. }
  116.  
  117. public OnPlayerRequestSpawn(playerid)
  118. {
  119.     return 1;
  120. }
  121.  
  122. public OnObjectMoved(objectid)
  123. {
  124.     return 1;
  125. }
  126.  
  127. public OnPlayerObjectMoved(playerid, objectid)
  128. {
  129.     return 1;
  130. }
  131.  
  132. public OnPlayerPickUpPickup(playerid, pickupid)
  133. {
  134.     return 1;
  135. }
  136.  
  137. public OnVehicleMod(playerid, vehicleid, componentid)
  138. {
  139.     return 1;
  140. }
  141.  
  142. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  143. {
  144.     return 1;
  145. }
  146.  
  147. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnPlayerSelectedMenuRow(playerid, row)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnPlayerExitedMenu(playerid)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnRconLoginAttempt(ip[], password[], success)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnPlayerUpdate(playerid)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnPlayerStreamIn(playerid, forplayerid)
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerStreamOut(playerid, forplayerid)
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnVehicleStreamIn(vehicleid, forplayerid)
  193. {
  194.     return 1;
  195. }
  196.  
  197. public OnVehicleStreamOut(vehicleid, forplayerid)
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  208. {
  209. new vardas[MAX_PLAYER_NAME];
  210. new id = GetPlayeridMid(vardas);
  211. if (GetPlayerVirtualWorld(id)>0){SendClientMessage(playerid, 0xFFFF00AA, "* Zaidejas savo namuose, isibrauti negrazu"); return 1;}
  212. SetPlayerInterior(playerid,GetPlayerInterior(id));
  213. new Float:tempcoo[3];
  214. GetPlayerPos(clickedplayerid,tempcoo[0],tempcoo[1],tempcoo[2]);
  215. SetPlayerPos(playerid,tempcoo[0],tempcoo[1],tempcoo[2]);
  216. SetCameraBehindPlayer(playerid);
  217. return 1;
  218. }
  219. stock GetPlayeridMid(name[])
  220. {
  221. for (new i = 0; i < MAX_PLAYERS; i++){
  222. new gPlayerName[MAX_PLAYER_NAME];
  223. GetPlayerName(i, gPlayerName, MAX_PLAYER_NAME);
  224. if(strfind(gPlayerName, name, true) != -1)
  225. {
  226. return i;
  227. }}
  228. return INVALID_PLAYER_ID;
  229. }
Advertisement
Add Comment
Please, Sign In to add comment