Advertisement
Guest User

/muteall cmd

a guest
Dec 14th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. CMD:muteall(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][aLevel] < 3) return SendClientMessage(playerid, RED, "Only admin level 3+ can use this command.");
  4. if(sscanf(params, "i")) return SendClientMessage(playerid, RED, "{9ACD32}[INFO]: {FFFFFF}/muteall");
  5. for(new i = 0; i < MAX_PLAYERS; i++)
  6. {
  7. {
  8. PlayerPlaySound(i,1057,0.0,0.0,0.0);
  9. IsMuted{playerid} = 1;
  10. IsNewbieMutted = true;
  11. }
  12. format(fstr, sizeof(fstr), "~r~Muted");
  13. GameTextForAll(fstr, 5000, 5);
  14. }
  15. new astring[64];
  16. format(astring, sizeof(astring), "Admin %s(%d) has muted All players", GetName(playerid), playerid);
  17. SendAdminMessage(GREY, astring);
  18. return true;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement