Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:muteall(playerid, params[])
- {
- if(PlayerInfo[playerid][aLevel] < 3) return SendClientMessage(playerid, RED, "Only admin level 3+ can use this command.");
- if(sscanf(params, "i")) return SendClientMessage(playerid, RED, "{9ACD32}[INFO]: {FFFFFF}/muteall");
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- {
- PlayerPlaySound(i,1057,0.0,0.0,0.0);
- IsMuted{playerid} = 1;
- IsNewbieMutted = true;
- }
- format(fstr, sizeof(fstr), "~r~Muted");
- GameTextForAll(fstr, 5000, 5);
- }
- new astring[64];
- format(astring, sizeof(astring), "Admin %s(%d) has muted All players", GetName(playerid), playerid);
- SendAdminMessage(GREY, astring);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement