Advertisement
MrConso99

Coosaver with Dini

Jun 9th, 2011
1,205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.97 KB | None | 0 0
  1. /*
  2.  
  3. ................................
  4. -->DONT REMOVE CREDITS PLEASE<--
  5. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6. *************************************************
  7. *<< InGame Coordinates Saver by MrConso99 >>*
  8. *<< (c)2011 MrConso99's Scripts >>*
  9. *<< Thanks to: >>*
  10. *<< -DracoBlue for dini >>*
  11. *<< -SA-MP Team for a_samp >>*
  12. *<< -Me for the FS(its my first FS :D >>*
  13. *<< -ITB CompuPhase for PAWN Compiler >>*
  14. *************************************************
  15.  
  16.  
  17. ___ ___ _____ _____ _____ __ _ _____ _____ _____ _____ _ _____ _____ _____ _____ _ _____ _____
  18. / |/ | | _ \ / ___| / _ \ | \ | | / ___/ / _ \ / _ \ / _ \ /_/ / ___/ / ___/ / ___| | _ \ | | | _ \ |_ _|
  19. / /| /| | | |_| | | | | | | | | \| | | |___ | | | | | |_| | | |_| | | |___ | |___ | | | |_| | | | | |_| | | |
  20. / / |__/ | | | _ / | | | | | | | |\ | \___ \ | | | | \___ | \___ | \___ \ \___ \ | | | _ / | | | ___/ | |
  21. / / | | | | \ \ | |___ | |_| | | | \ | ___| | | |_| | ___| | ___| | ___| | ___| | | |___ | | \ \ | | | | | |
  22. /_/ |_| |_| \_\ \_____| \_____/ |_| \_| /_____/ \_____/ |_____/ |_____/ /_____/ /_____/ \_____| |_| \_\ |_| |_| |_|
  23.  
  24. ASCII TEXT GENERATOR AT:
  25. http://www.javascriptkit.com/script/script2/asciitext.shtml
  26.  
  27. */
  28.  
  29. #define FILTERSCRIPT
  30.  
  31. #define Yellow 0xFFFF00AA
  32.  
  33. #include <a_samp>
  34. #include <Dini>
  35.  
  36.  
  37.  
  38. #if defined FILTERSCRIPT
  39.  
  40. public OnFilterScriptInit()
  41. {
  42. print("\n--------------------------------------");
  43. print(" Coosaver by .:.->MrConso99<.:. Loaded.");
  44. print("--------------------------------------\n");
  45. return 1;
  46. }
  47.  
  48. public OnFilterScriptExit()
  49. {
  50. return 1;
  51. }
  52.  
  53. #else
  54.  
  55. main()
  56. {
  57. print("\n----------------------------------");
  58. print(" Coosaver by .:.->MrConso99<-.:.");
  59. print("----------------------------------\n");
  60. }
  61.  
  62. #endif
  63.  
  64.  
  65. public OnPlayerCommandText(playerid, cmdtext[])
  66. {
  67. if (strcmp("/savecoo", cmdtext, true, 10) == 0)
  68. {
  69. new file[256];
  70. new Float:x,Float:y,Float:z;
  71. new string[256];
  72. GetPlayerPos(playerid,x,y,z);
  73. format(string,sizeof(string)," %d , %d , %d \r \n",x,y,z);
  74. SendClientMessage(playerid,Yellow,"Coordinates saved(x,y,z):");
  75. SendClientMessage(playerid,Yellow,string);
  76. SendClientMessage(playerid,Yellow,"You can find it in the file 'Coordinates.txt' in the server's scriptfiles.");
  77. SendClientMessage(playerid,Yellow,"Created By MrConso99.");//you can remove this message.
  78. format(file, 256, "Coordinates.txt");
  79. if(!dini_Exists(file))
  80. {
  81. dini_Create(file);
  82. print("File 'Coordinates.txt' successfully created");
  83. dini_Set(file,"Coordinates [x,y,z] ",string);
  84. DINI_StripNewLine(string);
  85. }
  86. else
  87. {
  88. dini_Set(file,"Coordinates [x,y,z] ",string);
  89. DINI_StripNewLine(string);
  90. }
  91. return 1;
  92. }
  93. return 0;
  94. }
  95.  
  96. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  97. {
  98. return 1;
  99. }
  100.  
  101. public OnPlayerExitVehicle(playerid, vehicleid)
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerStateChange(playerid, newstate, oldstate)
  107. {
  108. return 1;
  109. }
  110.  
  111. public OnPlayerEnterCheckpoint(playerid)
  112. {
  113. return 1;
  114. }
  115.  
  116. public OnPlayerLeaveCheckpoint(playerid)
  117. {
  118. return 1;
  119. }
  120.  
  121. public OnPlayerEnterRaceCheckpoint(playerid)
  122. {
  123. return 1;
  124. }
  125.  
  126. public OnPlayerLeaveRaceCheckpoint(playerid)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnRconCommand(cmd[])
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnPlayerRequestSpawn(playerid)
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnObjectMoved(objectid)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnPlayerObjectMoved(playerid, objectid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnPlayerPickUpPickup(playerid, pickupid)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnVehicleMod(playerid, vehicleid, componentid)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnPlayerSelectedMenuRow(playerid, row)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnPlayerExitedMenu(playerid)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnRconLoginAttempt(ip[], password[], success)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnPlayerUpdate(playerid)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnPlayerStreamIn(playerid, forplayerid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnPlayerStreamOut(playerid, forplayerid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnVehicleStreamIn(vehicleid, forplayerid)
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnVehicleStreamOut(vehicleid, forplayerid)
  217. {
  218. return 1;
  219. }
  220.  
  221. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  222. {
  223. return 1;
  224. }
  225.  
  226. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  227. {
  228. return 1;
  229. }
  230. //====END OF FILE===============================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement