Advertisement
Guest User

FS faction en cours.

a guest
May 8th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.68 KB | None | 0 0
  1. //--------------------------------------------DEFINE COULEUR -----------------//
  2.  
  3. #define COL_WHITE "{FFFFFF}"
  4. #define COL_RED "{F81414}"
  5. #define COL_GREEN "{00FF22}"
  6. #define COL_LIGHTBLUE "{00CED1}"
  7. #define COLORYELLOW "{9DBD1E}"
  8. #define COLORORANGE "{E68C0E}"
  9. #define COLORBLUE "{39AACC}"
  10. #define COLORGREEN "{6FA828}"
  11. #define COLORWHITE "{FFFFFF}"
  12. #define COLORRED "{FF0000}"
  13. #define COLORGREY "{7D8584}"
  14. #define COL_BROWN "{6B3F34}"
  15. #define COL_PROPERTIES "{4364FF}"
  16. #define COL_HOUSES "{6200FF}"
  17.  
  18. //----------------------------------------------------------------------------//
  19.  
  20. // ------------DEFINE DIVERS--------------------------------------------------//
  21.  
  22. #define MAX_PLAYERS
  23.  
  24.  
  25.  
  26.  
  27. // -------------ENUM----------------------------------------------------------//
  28.  
  29. enum pInfos
  30. {
  31. LSPD,
  32. }
  33. new InfosJoueur[MAX_PLAYERS][pInfos];
  34.  
  35. //----------------------------------------------------------------------------//
  36.  
  37. #include <a_samp>
  38.  
  39. #if defined FILTERSCRIPT
  40.  
  41. public OnFilterScriptInit()
  42. {
  43. print("\n--------------------------------------");
  44. print(" Scrip faction par Kalvin Sexton");
  45. print("--------------------------------------\n");
  46. return 1;
  47. }
  48.  
  49. public OnFilterScriptExit()
  50. {
  51. return 1;
  52. }
  53.  
  54. #else
  55.  
  56. main()
  57. {
  58. print("\n----------------------------------");
  59. print(" Blank Gamemode by your name here");
  60. print("----------------------------------\n");
  61. }
  62.  
  63. #endif
  64.  
  65. public OnGameModeInit()
  66. {
  67.  
  68. return 1;
  69. }
  70.  
  71. public OnGameModeExit()
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnPlayerRequestClass(playerid, classid)
  77. {
  78. InfosJoueur[playerid][LSPD]=0;
  79. return 1;
  80. }
  81.  
  82. public OnPlayerConnect(playerid)
  83. {
  84.  
  85. return 1;
  86. }
  87.  
  88. public OnPlayerDisconnect(playerid, reason)
  89. {
  90. return 1;
  91. }
  92.  
  93. public OnPlayerSpawn(playerid)
  94. {
  95. InfosJoueur[playerid][LSPD]=1;
  96. return 1;
  97. }
  98.  
  99. public OnPlayerDeath(playerid, killerid, reason)
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnVehicleSpawn(vehicleid)
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnVehicleDeath(vehicleid, killerid)
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnPlayerText(playerid, text[])
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerCommandText(playerid, cmdtext[])
  120. { //Commande Admin
  121. if (strcmp("/makeleader", cmdtext, true, 10) == 0)
  122. {
  123. if(IsPlayerAdmin(playerid)) SendClientMessage(playerid,0x00FFFFFF,"[USAGE] /makeleader [ID joueur] [ID faction] pour definir un leader faction.");
  124. else if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid,0x00FFFFFF,"Tu n'est pas le Super Admin!");
  125. return 1;
  126. }
  127. if (strcmp("/afaction", cmdtext, true, 10) == 0)
  128. {
  129. if(IsPlayerAdmin(playerid)) SendClientMessage(playerid,0x00FFFFFF,"/makeleader /xxx /xxx /xxx /xxx /xxx /xxx /xxx /xxx /xxx /xxx"); // /xxx = à complete par les futurs cmds
  130. else if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid,0x00FFFFFF,"Tu n'est pas le Super Admin!");
  131. return 1;
  132. }
  133. return 0;
  134. }
  135.  
  136.  
  137.  
  138.  
  139. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnPlayerExitVehicle(playerid, vehicleid)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnPlayerStateChange(playerid, newstate, oldstate)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnPlayerEnterCheckpoint(playerid)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnPlayerLeaveCheckpoint(playerid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnPlayerEnterRaceCheckpoint(playerid)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnPlayerLeaveRaceCheckpoint(playerid)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnRconCommand(cmd[])
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnPlayerRequestSpawn(playerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnObjectMoved(objectid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerObjectMoved(playerid, objectid)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnPlayerPickUpPickup(playerid, pickupid)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnVehicleMod(playerid, vehicleid, componentid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnPlayerSelectedMenuRow(playerid, row)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnPlayerExitedMenu(playerid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  225. {
  226. return 1;
  227. }
  228.  
  229. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  230. {
  231. return 1;
  232. }
  233.  
  234. public OnRconLoginAttempt(ip[], password[], success)
  235. {
  236. return 1;
  237. }
  238.  
  239. public OnPlayerUpdate(playerid)
  240. {
  241. return 1;
  242. }
  243.  
  244. public OnPlayerStreamIn(playerid, forplayerid)
  245. {
  246. return 1;
  247. }
  248.  
  249. public OnPlayerStreamOut(playerid, forplayerid)
  250. {
  251. return 1;
  252. }
  253.  
  254. public OnVehicleStreamIn(vehicleid, forplayerid)
  255. {
  256. return 1;
  257. }
  258.  
  259. public OnVehicleStreamOut(vehicleid, forplayerid)
  260. {
  261. return 1;
  262. }
  263.  
  264. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  270. {
  271. return 1;
  272. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement