Advertisement
Guest User

Untitled

a guest
Jan 24th, 2011
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.84 KB | None | 0 0
  1. // ---------------- CREATED -------------------
  2. // this filterscript is created by Dutchmen0031
  3. // this is my first own filterscript
  4. // DONT LEAVE THE CREDITS PLEASE
  5. // ---------------- CREATED -------------------
  6.  
  7. #define FILTERSCRIPT
  8.  
  9. #include <a_samp>
  10. #include sscanf
  11. #pragma tabsize 0
  12.  
  13. #define DS 16370
  14. #if defined FILTERSCRIPT
  15.  
  16.          
  17. public OnFilterScriptInit()
  18. {
  19.     print("\n----------FILTERSCRIPT LOADING----------");
  20.     print(" Litle Command Dialog");
  21.     print(" Created By Dutchmen");
  22.     print("------------LOADED SUCCESFULLY ---------\n");
  23.     return 1;
  24. }
  25.  
  26. public OnFilterScriptExit()
  27. {
  28.     return 1;
  29. }
  30.  
  31. #else
  32.  
  33. main()
  34. {
  35.     print("\n----------------------------------");
  36.     print(" Filterscript text by your name here");
  37.     print("----------------------------------\n");
  38. }
  39.  
  40. #endif
  41.  
  42. public OnPlayerConnect(playerid)
  43. {
  44.     return 1;
  45. }
  46.  
  47. public OnPlayerDisconnect(playerid, reason)
  48. {
  49.     return 1;
  50. }
  51.  
  52. public OnPlayerSpawn(playerid)
  53. {
  54.     return 1;
  55. }
  56.  
  57. public OnPlayerDeath(playerid, killerid, reason)
  58. {
  59.     return 1;
  60. }
  61.  
  62. public OnVehicleSpawn(vehicleid)
  63. {
  64.     return 1;
  65. }
  66.  
  67. public OnVehicleDeath(vehicleid, killerid)
  68. {
  69.     return 1;
  70. }
  71.  
  72. public OnPlayerText(playerid, text[])
  73. {
  74.     return 1;
  75. }
  76.  
  77. public OnPlayerCommandText(playerid, cmdtext[])
  78. {
  79.    if (strcmp(cmdtext, "/commands", true)==0)
  80.    ShowPlayerDialog(playerid, 8899, DIALOG_STYLE_LIST, "Commands","Here a list with commmands\nAFK\nBack (from afk)\nkill (myself)\nhelp\nAdmins\nSwitchclass\nWebsite\nRules\nmusic\nHere under a list with anims\nCiggy\nHandsup\nCell on\nCell off\nPiss\nBeer\nWine\nSprunk\nDance 1\nDance 2\nDance 3\nDance 4", "Select", "Close");
  81.    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  82. }
  83.  
  84. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  85. {
  86.     if(dialogid == 8899)
  87.     {
  88.     if(response)
  89.     {
  90.     if(listitem == 0)
  91.     return 0;}
  92.  
  93. //here a list with commands
  94. {
  95.     SendClientMessage(playerid, 0xFFFFFFAA, "You have load the Command succesfully");
  96. }
  97.  
  98. if(listitem == 1)
  99. //AFK
  100. {
  101.     new pName[MAX_PLAYER_NAME];
  102.     new Zstring[48];
  103.     GetPlayerName(playerid, pName, sizeof(pName));
  104.     format(Zstring, sizeof(Zstring), "SERVER: %s is now AFK.", pName);
  105.     SendClientMessageToAll(0xFFFFFFAA, Zstring);
  106.     SetPlayerFacingAngle(playerid,0);
  107.     TogglePlayerControllable(playerid, 0);
  108. }
  109.  
  110. if(listitem == 2)
  111. //Back
  112. {
  113.     new pName[MAX_PLAYER_NAME];
  114.     new Zstring[48];
  115.     GetPlayerName(playerid, pName, sizeof(pName));
  116.     format(Zstring, sizeof(Zstring), "SERVER: %s has returned", pName);
  117.     SendClientMessageToAll(0xFFFFFFAA, Zstring);
  118.     SetPlayerFacingAngle(playerid, 0);
  119.     TogglePlayerControllable(playerid, 1);
  120. }
  121.  
  122. if(listitem == 3)
  123. //kill myself
  124. {
  125.     if(IsPlayerConnected(playerid))
  126.     SetPlayerHealth(playerid, 0);
  127.     SendClientMessage(playerid, 0xFFFFFFAA, "You have now Kill uself");
  128. }
  129.  
  130. if(listitem == 4)
  131. //Help
  132. {
  133.     SendClientMessage(playerid,0xFFFFFFAA,"here you own text");
  134.     SendClientMessage(playerid,0xFFFFFFAA,"here you own text");
  135.     SendClientMessage(playerid,0xFFFFFFAA,"here you own text");
  136. }
  137.  
  138. if(listitem == 5)
  139. //Admins
  140. {
  141.     SendClientMessage(playerid,0x0000BBAA,"here you own admin");
  142.     SendClientMessage(playerid,0x0000BBAA,"here you own admin");
  143.     SendClientMessage(playerid,0x0000BBAA,"here you own admin");
  144.     SendClientMessage(playerid,0x0000BBAA,"here you own admin");
  145. }
  146.  
  147. if(listitem == 6)
  148. //switchclass
  149. {
  150.     ForceClassSelection(playerid);
  151.     SetPlayerHealth(playerid, 0.00);
  152. }
  153.  
  154. if(listitem == 7)
  155. //website
  156. {
  157.     SendClientMessage(playerid,0x0000BBAA,"Website: here you own website Name");
  158.     SendClientMessage(playerid,0xFFFFFFAA,"here you own website");
  159. }
  160.  
  161. if(listitem == 8)
  162. //rules
  163. {
  164.     SendClientMessage(playerid,0xFF0A00FF,"here you rule1");
  165.     SendClientMessage(playerid,0xFF0A00FF,"here you rule2");
  166.     SendClientMessage(playerid,0xFF0A00FF,"here you rule3");
  167.     SendClientMessage(playerid,0xFF0A00FF,"here you rule4");
  168. }
  169.  
  170. if(listitem == 9)
  171. //Music (Change this to you favourite music (the number 1062) look on http://wiki.sa-mp.com/wiki/SoundID for samp sound ids
  172. {
  173.     new Float:X,Float:Y,Float:Z;
  174.     GetPlayerPos(playerid, X, Y, Z);
  175.     PlayerPlaySound(playerid, 1062, X, Y, Z);
  176. }
  177.  
  178. if(listitem == 10)
  179. //Here under a list with anims
  180. {
  181.     SendClientMessage(playerid,0xFF0A00FF,"here under some anims");
  182. }
  183.  
  184. if(listitem == 11)
  185. //Ciggy
  186. {
  187.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
  188.     SendClientMessage(playerid, 0xFFFF00AA, "To smoke, use the left mouse buttom.");
  189. }
  190.  
  191. if(listitem == 12)
  192. //Handsup
  193. {
  194.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  195.     SendClientMessage(playerid, 0xFFFF00AA, "Presh enter to stop the annim");
  196. }
  197.  
  198. if(listitem == 13)
  199. //Celfone on
  200. {
  201.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
  202.     SendClientMessage(playerid, 0xFFFF00AA, "Use Celloff to do away the celfone");
  203. }
  204.  
  205. if(listitem == 14)
  206. //Celfone off
  207. {
  208.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
  209. }
  210.  
  211. if(listitem == 15)
  212. //Piss
  213. {
  214.     SetPlayerSpecialAction(playerid, 68);
  215. }
  216.  
  217. if(listitem == 16)
  218. //Beer
  219. {
  220.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
  221.     SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom");
  222. }
  223.  
  224. if(listitem == 17)
  225. //Wine
  226. {
  227.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
  228.     SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom");
  229. }
  230.  
  231. if(listitem == 18)
  232. //Sprunk
  233. {
  234.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  235.     SendClientMessage(playerid, 0xFFFF00AA, "To Drink, use the left mouse buttom");
  236. }
  237.  
  238. if(listitem == 19)
  239. //Dance 1
  240. {
  241.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
  242. }
  243.  
  244. if(listitem == 20)
  245. //Dance 2
  246. {
  247.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
  248. }
  249.  
  250. if(listitem == 21)
  251. //Dance 3
  252. {
  253.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
  254. }
  255.  
  256. if(listitem == 22)
  257. //Dance 4
  258. {
  259.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
  260.                 }
  261.             }
  262.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement