Guest User

Untitled

a guest
Jun 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.93 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.  
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.  
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.     return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26.  
  27. }
  28.  
  29. #endif
  30.  
  31. forward ConnLog(string[]);
  32. public ConnLog(string[])
  33. {
  34.     new Year, Month, Day;
  35.     getdate(Year, Month, Day);
  36.  
  37.     new nomfichier[32];
  38.  
  39.     format(nomfichier,sizeof(nomfichier),"ConnLog/%i.%i.%i.log",Day,Month,Year);
  40.  
  41.     new save[256];
  42.     format(save, sizeof(save), "%s\n",string);
  43.     new File:hFile;
  44.     hFile = fopen(nomfichier, io_append);
  45.     fwrite(hFile, save);
  46.     fclose(hFile);
  47. }
  48.  
  49. public OnGameModeInit()
  50. {
  51.     // Don't use these lines if it's a filterscript
  52.     SetGameModeText("Blank Script");
  53.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  54.     return 1;
  55. }
  56.  
  57. public OnGameModeExit()
  58. {
  59.     return 1;
  60. }
  61.  
  62. public OnPlayerRequestClass(playerid, classid)
  63. {
  64.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  65.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  66.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  67.     return 1;
  68. }
  69.  
  70. public OnPlayerConnect(playerid)
  71. {
  72.     new playername[MAX_PLAYER_NAME];
  73.     new ip[16];
  74.     new string[128];
  75.     new Hour, Minute, Second;
  76.     new Year, Month, Day;
  77.  
  78.     getdate(Year, Month, Day);
  79.     gettime(Hour, Minute, Second);
  80.  
  81.     GetPlayerName(playerid, playername, sizeof(playername));
  82.     GetPlayerIp(playerid, ip, sizeof(ip));
  83.  
  84.     format(string, sizeof(string),"Heure: %i:%i:%i || Nom: %s || Ip: %s\r\n",Hour,Minute,Second,playername,ip);
  85.     ConnLog(string);
  86.  
  87.     return 1;
  88. }
  89.  
  90. public OnPlayerDisconnect(playerid, reason)
  91. {
  92.     return 1;
  93. }
  94.  
  95. public OnPlayerSpawn(playerid)
  96. {
  97.     return 1;
  98. }
  99.  
  100. public OnPlayerDeath(playerid, killerid, reason)
  101. {
  102.     return 1;
  103. }
  104.  
  105. public OnVehicleSpawn(vehicleid)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnVehicleDeath(vehicleid, killerid)
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnPlayerText(playerid, text[])
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerCommandText(playerid, cmdtext[])
  121. {
  122.  
  123.     return 0;
  124. }
  125.  
  126. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  127. {
  128.     return 1;
  129. }
  130.  
  131. public OnPlayerExitVehicle(playerid, vehicleid)
  132. {
  133.     return 1;
  134. }
  135.  
  136. public OnPlayerStateChange(playerid, newstate, oldstate)
  137. {
  138.     return 1;
  139. }
  140.  
  141. public OnPlayerEnterCheckpoint(playerid)
  142. {
  143.     return 1;
  144. }
  145.  
  146. public OnPlayerLeaveCheckpoint(playerid)
  147. {
  148.     return 1;
  149. }
  150.  
  151. public OnPlayerEnterRaceCheckpoint(playerid)
  152. {
  153.     return 1;
  154. }
  155.  
  156. public OnPlayerLeaveRaceCheckpoint(playerid)
  157. {
  158.     return 1;
  159. }
  160.  
  161. public OnRconCommand(cmd[])
  162. {
  163.     return 1;
  164. }
  165.  
  166. public OnPlayerRequestSpawn(playerid)
  167. {
  168.     return 1;
  169. }
  170.  
  171. public OnObjectMoved(objectid)
  172. {
  173.     return 1;
  174. }
  175.  
  176. public OnPlayerObjectMoved(playerid, objectid)
  177. {
  178.     return 1;
  179. }
  180.  
  181. public OnPlayerPickUpPickup(playerid, pickupid)
  182. {
  183.     return 1;
  184. }
  185.  
  186. public OnVehicleMod(playerid, vehicleid, componentid)
  187. {
  188.     return 1;
  189. }
  190.  
  191. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  192. {
  193.     return 1;
  194. }
  195.  
  196. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnPlayerSelectedMenuRow(playerid, row)
  202. {
  203.     return 1;
  204. }
  205.  
  206. public OnPlayerExitedMenu(playerid)
  207. {
  208.     return 1;
  209. }
  210.  
  211. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  212. {
  213.     return 1;
  214. }
  215.  
  216. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  217. {
  218.     return 1;
  219. }
  220.  
  221. public OnRconLoginAttempt(ip[], password[], success)
  222. {
  223.     return 1;
  224. }
  225.  
  226. public OnPlayerUpdate(playerid)
  227. {
  228.     return 1;
  229. }
  230.  
  231. public OnPlayerStreamIn(playerid, forplayerid)
  232. {
  233.     return 1;
  234. }
  235.  
  236. public OnPlayerStreamOut(playerid, forplayerid)
  237. {
  238.     return 1;
  239. }
  240.  
  241. public OnVehicleStreamIn(vehicleid, forplayerid)
  242. {
  243.     return 1;
  244. }
  245.  
  246. public OnVehicleStreamOut(vehicleid, forplayerid)
  247. {
  248.     return 1;
  249. }
  250.  
  251. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  252. {
  253.     return 1;
  254. }
  255.  
  256. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  257. {
  258.     return 1;
  259. }
Add Comment
Please, Sign In to add comment