Advertisement
DJTunes

Welcome Messages FS

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