Advertisement
Guest User

Untitled

a guest
Mar 13th, 2013
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #if defined FILTERSCRIPT
  4.  
  5. public OnFilterScriptInit()
  6. {
  7. print("\n--------------------------------------");
  8. print(" killall system");
  9. print("--------------------------------------\n");
  10. return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15. return 1;
  16. }
  17.  
  18. #else
  19.  
  20. main()
  21. {
  22. print("\n----------------------------------");
  23. print(" admin system one");
  24. print("----------------------------------\n");
  25. }
  26.  
  27. #endif
  28.  
  29. CMD:killall(playerid, params[])
  30. {
  31. if(PlayerInfo[playerid][AdminLevel] >= 3)
  32. {
  33. foreach(Player, i)
  34. {
  35. SetPlayerHealth(i, 0);
  36. }
  37. SetPlayerHealth(playerid, 0);
  38. new string[128], name[MAX_PLAYER_NAME];
  39. GetPlayerName(playerid, name, sizeof(name));
  40. format(string, sizeof(string), "Administrator {FF0000}%s {FFFFFF}has killed all players", name);
  41. SendCommandToAdmins(playerid,"/killall");
  42. }
  43. else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 3 or server owner to use this command");
  44. return 1;
  45. }
  46.  
  47. CMD:killall(playerid, params[])
  48. {
  49. if(PlayerInfo[playerid][AdminLevel] >= 3)
  50. {
  51. foreach(Player, i)
  52. {
  53. SetPlayerHealth(i, 0);
  54. }
  55. SetPlayerHealth(playerid, 0);
  56. new string[128], name[MAX_PLAYER_NAME];
  57. GetPlayerName(playerid, name, sizeof(name));
  58. format(string, sizeof(string), "Administrator {FF0000}%s {FFFFFF}has killed all players", name);
  59. SendCommandToAdmins(playerid,"/killall");
  60. }
  61. else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 3 or server owner to use this command");
  62. return 1;
  63. }
  64. CMD:annc(playerid, params[])
  65. {
  66. if(PlayerInfo[playerid][AdminLevel] >= 3)
  67. {
  68. new msg[200];
  69. if (sscanf(params, "s[200]", msg)) return SendClientMessage(playerid, COLOR_RED, "Usage: /annc [message/announce]");
  70. if (IsPlayerConnected(playerid))
  71. {
  72. GameTextForAll(msg, 5000, 5);
  73. SendCommandToAdmins(playerid,"/annc");
  74. }
  75. }
  76. else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast admin level 3 to use this command");
  77. return 1;
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement