Advertisement
Guest User

Troll admin by Sellize

a guest
Jan 27th, 2013
1,083
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.74 KB | None | 0 0
  1. // This is a FS made by Sellize.
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5. #include <sscanf2>
  6. #include <zcmd>
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.     print("\n--------------------------------------");
  11.     print("       Trolladmin by Sellize        ");
  12.     print("--------------------------------------\n");
  13.     return 1;
  14. }
  15.  
  16. stock PlayerName(playerid)
  17. {
  18.   new name[24];
  19.   GetPlayerName(playerid, name, sizeof(name));
  20.   return name;
  21. }
  22.        
  23. CMD:fakeban(playerid, params[])
  24. {
  25.     if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: You are not logged in as an admin.");
  26.     new ID;
  27.     if (sscanf(params, "us[90]", ID)) return SendClientMessage(playerid, 0x1F36E0FF, "USAGE: /fakeban [Playerid/Name]");
  28.     if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: Player not found.");
  29.     new string[128];
  30.     format(string,sizeof(string),"%s has been banned by %s for Speed hack", PlayerName(ID), PlayerName(playerid));
  31.     SendClientMessageToAll(0x1F36E0FF, string);
  32.     SendClientMessage(ID, 0xa9c4e4FF, "Server closed the connection.");
  33.     return 1;
  34. }
  35.  
  36. CMD:fakekick(playerid, params[])
  37. {
  38.     if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: You are not logged in as an admin.");
  39.     new ID;
  40.     if (sscanf(params, "us[90]", ID)) return SendClientMessage(playerid, 0x1F36E0FF, "USAGE: /fakekick [Playerid/Name]");
  41.     if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: Player not found.");
  42.     new string[128];
  43.     format(string,sizeof(string),"%s has been kicked by %s for S0beit Hacks", PlayerName(ID), PlayerName(playerid));
  44.     SendClientMessageToAll(0x1F36E0FF, string);
  45.     SendClientMessage(ID, 0xa9c4e4FF, "Server closed the connection.");
  46.     return 1;
  47. }
  48.  
  49. CMD:fakemute(playerid, params[])
  50. {
  51.     if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: You are not logged in as an admin.");
  52.     new ID;
  53.     if (sscanf(params, "us[90]", ID)) return SendClientMessage(playerid, 0x1F36E0FF, "USAGE: /fakemute [Playerid/Name]");
  54.     if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: Player not found.");
  55.     new string[128];
  56.     format(string,sizeof(string),"%s has been mute by %s for STOP SPAMMING", PlayerName(ID), PlayerName(playerid));
  57.     SendClientMessageToAll(0x1F36E0FF, string);
  58.     SendClientMessage(ID, 0xa9c4e4FF, "Server: You have been muted");
  59.     return 1;
  60. }
  61.  
  62. CMD:fakeadmin(playerid, params[])
  63. {
  64.     if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: You are not logged in as an admin.");
  65.     new ID;
  66.     if (sscanf(params, "us[90]", ID)) return SendClientMessage(playerid, 0x1F36E0FF, "USAGE: /fakeadmin [Playerid/Name]");
  67.     if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: Player not found.");
  68.     new string[128];
  69.     format(string,sizeof(string),"%s has been promoted to OWNER by %s!", PlayerName(ID), PlayerName(playerid));
  70.     SendClientMessageToAll(0x1F36E0FF, string);
  71.     SendClientMessage(ID, 0xa9c4e4FF, "Server: You have been promoted to owner status!");
  72.     return 1;
  73. }
  74.  
  75. CMD:rickroll(playerid, params[])
  76. {
  77.     if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: You are not logged in as an admin.");
  78.     new ID;
  79.     if (sscanf(params, "us[90]", ID)) return SendClientMessage(playerid, 0x1F36E0FF, "USAGE: /rickroll [Playerid/Name]");
  80.     if (!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xF50A0AFF, "NOTICE: Player not found.");
  81.     SendClientMessage(playerid, 0xa9c4e4FF, "Server: Player is being rickrolled!");
  82.     SendClientMessage(ID, 0xa9c4e4FF, "Server: You have been rickrolled!");
  83.     PlayAudioStreamForPlayer(playerid, "http://dl.dropbox.com/u/112608840/rick_astley_never_gonna_give_you_up_mp3_62592.mp3");
  84.     return 1;
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement