Advertisement
DJTunes

TDM Release Update 2

Dec 27th, 2012
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 8.81 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. //defines
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.     print("\n--------------------------------------");
  14.     print(" Blank Filterscript by your name here");
  15.     print("--------------------------------------\n");
  16.     return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21.     return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28.     print("\n----------------------------------");
  29.     print(" [SECOND GAMEMODE][SIMPLE]Team Death Match by DJTunes");
  30.     print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34. //-----------------------------------------------------------------------------------------------//
  35. public OnGameModeInit()
  36. {
  37. // Don't use these lines if it's a filterscript
  38. //-----------------------------------------------------------------------------------------------//
  39. //Gamemode Text
  40.     SetGameModeText("Team Death Match");
  41. //-----------------------------------------------------------------------------------------------//
  42. //Classes
  43. //-----------------------------------------------------------------------------------------------//
  44.     AddPlayerClass(287,201.1741,1869.4302,13.1406,265.2041,31,200,29,200,24,300); // Team 1
  45.     AddPlayerClass(179,1042.8230,1010.9085,11.0000,326.6804,25,200,30,200,24,300); // Team 2
  46.     return 1;
  47. }
  48. //-----------------------------------------------------------------------------------------------//
  49. public OnGameModeExit()
  50. {
  51.     print("\n----------------------------------");
  52.     print(" [SECOND GAMEMODE][SIMPLE]Team Death Match by DJTunes");
  53.     print("----------------------------------\n");
  54.     return 1;
  55. }
  56. //-----------------------------------------------------------------------------------------------//
  57. public OnPlayerRequestClass(playerid, classid)
  58. {
  59.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  60.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  61.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  62. //-----------------------------------------------------------------------------------------------//
  63. //OnPlayerRequestClass Text
  64.         switch (classid)
  65.     {
  66.         case 0:
  67.         {
  68.         GameTextForPlayer(playerid, "~b~Team 1", 3000, 5);
  69.         }
  70.         case 1:
  71.         {
  72.         GameTextForPlayer(playerid, "~r~Team 2", 3000, 5);
  73.         }
  74.  }
  75.     return 1;
  76. }
  77. //-----------------------------------------------------------------------------------------------//
  78. public OnPlayerConnect(playerid)
  79. {
  80.     new string[64], pName[MAX_PLAYER_NAME];
  81.     GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  82.     format(string,sizeof string,"%s has joined Team Death Match. Welcome!",pName);
  83.     SendClientMessageToAll(0xFFFFFFAA,string);
  84.     return 1;
  85. }
  86. //-----------------------------------------------------------------------------------------------//
  87. public OnPlayerDisconnect(playerid, reason)
  88. {
  89.     new
  90.         string[64],
  91.         name[MAX_PLAYER_NAME];
  92.     GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  93.     switch(reason)
  94.     {
  95.         case 0: format(string,sizeof string,"%s left Team Death Match. (Timed out)",name);
  96.         case 1: format(string,sizeof string,"%s left Team Death Match. (Leaving)",name);
  97.         case 2: format(string,sizeof string,"%s left Team Death Match. (Kicked/Banned)",name);
  98.     }
  99.     SendClientMessageToAll(0xFFFFFFAA,string);
  100.     return 1;
  101. }
  102. //-----------------------------------------------------------------------------------------------//
  103. public OnPlayerSpawn(playerid)
  104. {
  105.     return 1;
  106. }
  107. //-----------------------------------------------------------------------------------------------//
  108. public OnPlayerDeath(playerid, killerid, reason)
  109. {
  110.     return 1;
  111. }
  112. //-----------------------------------------------------------------------------------------------//
  113. public OnVehicleSpawn(vehicleid)
  114. {
  115.     return 1;
  116. }
  117. //-----------------------------------------------------------------------------------------------//
  118. public OnVehicleDeath(vehicleid, killerid)
  119. {
  120.     return 1;
  121. }
  122. //-----------------------------------------------------------------------------------------------//
  123. public OnPlayerText(playerid, text[])
  124. {
  125.     return 1;
  126. }
  127. //-----------------------------------------------------------------------------------------------//
  128. public OnPlayerCommandText(playerid, cmdtext[])
  129. {
  130.     if (strcmp("/kill", cmdtext, true, 5) == 0)
  131.     {
  132.         SetPlayerHealth(playerid, 0.0);
  133.         return 1;
  134.     }
  135.     return 0;
  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. }
  273. //-----------------------------------------------------------------------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement