Guest User

CP

a guest
Feb 4th, 2010
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 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_samp3>
  6. #include <cpstream>//Include principal
  7.  
  8. #define AREAS 2
  9. new Name[AREAS][256] = {
  10. "Constru��o [San fierro]",
  11. "Patio delegacia [Las venturas]"
  12. //"nada"
  13. };
  14.  
  15. new Float: PosCheckPoint[AREAS][]={
  16. {-2090.1113,304.9083,41.0800},
  17. {2314.8586,2349.5310,10.6641}
  18. };
  19. new lastcp[MAX_PLAYERS];
  20. new CheckPointZones[AREAS];
  21. public OnFilterScriptInit()
  22. {
  23. for(new i=0;i<AREAS;i++)
  24. {
  25. CheckPointZones[i] = CPS_AddCheckpoint(PosCheckPoint[i][0],PosCheckPoint[i][1],PosCheckPoint[i][2],2.0,80);
  26. }
  27. print("\n--------------------------------------");
  28. print(" Minhas CP teste");
  29. print("--------------------------------------\n");
  30. return 1;
  31. }
  32.  
  33. public OnFilterScriptExit()
  34. {
  35. return 1;
  36. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. public OnPlayerConnect(playerid)
  44. {
  45. return 1;
  46. }
  47.  
  48. public OnPlayerDisconnect(playerid, reason)
  49. {
  50. return 1;
  51. }
  52.  
  53. public OnPlayerSpawn(playerid)
  54. {
  55. return 1;
  56. }
  57.  
  58. public OnPlayerDeath(playerid, killerid, reason)
  59. {
  60. return 1;
  61. }
  62.  
  63. public OnVehicleSpawn(vehicleid)
  64. {
  65. return 1;
  66. }
  67.  
  68. public OnVehicleDeath(vehicleid, killerid)
  69. {
  70. return 1;
  71. }
  72.  
  73. public OnPlayerText(playerid, text[])
  74. {
  75. return 1;
  76. }
  77.  
  78. public OnPlayerCommandText(playerid, cmdtext[])
  79. {
  80. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  81. {
  82. // Do something here
  83. return 1;
  84. }
  85. return 0;
  86. }
  87.  
  88. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  89. {
  90. return 1;
  91. }
  92.  
  93. public OnPlayerExitVehicle(playerid, vehicleid)
  94. {
  95. return 1;
  96. }
  97.  
  98. public OnPlayerStateChange(playerid, newstate, oldstate)
  99. {
  100. return 1;
  101. }
  102.  
  103. public OnPlayerEnterCheckpoint(playerid)
  104. {
  105. for(new j=0;j<AREAS;j++)
  106. {
  107. new string[256];
  108. lastcp[playerid] = CPS_GetPlayerCheckpoint(playerid);
  109. format(string, sizeof(string), "Entrou na CP %s", Name[j]);
  110. SendClientMessageToAll(0xAAAAAAAA, string);
  111. }
  112. return 1;
  113. }
  114.  
  115. public OnPlayerLeaveCheckpoint(playerid)
  116. {
  117. for(new j=0;j<AREAS;j++)
  118. {
  119. new string[256];
  120. lastcp[playerid] = CPS_GetPlayerCheckpoint(playerid);
  121. format(string, sizeof(string), "Saiu da CP %s", Name[j]);
  122. SendClientMessageToAll(0xAAAAAAAA, string);
  123. }
  124. return 1;
  125. }
  126.  
  127. public OnPlayerEnterRaceCheckpoint(playerid)
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerLeaveRaceCheckpoint(playerid)
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnRconCommand(cmd[])
  138. {
  139. return 1;
  140. }
  141.  
  142. public OnPlayerRequestSpawn(playerid)
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnObjectMoved(objectid)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerObjectMoved(playerid, objectid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnPlayerPickUpPickup(playerid, pickupid)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnVehicleMod(playerid, vehicleid, componentid)
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnPlayerSelectedMenuRow(playerid, row)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnPlayerExitedMenu(playerid)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnRconLoginAttempt(ip[], password[], success)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerUpdate(playerid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerStreamIn(playerid, forplayerid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerStreamOut(playerid, forplayerid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnVehicleStreamIn(vehicleid, forplayerid)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnVehicleStreamOut(vehicleid, forplayerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  233. {
  234. return 1;
  235. }
Advertisement
Add Comment
Please, Sign In to add comment