[FilterScript] [FS] Cales **Awesome-Administration** v1.5 !!Major Bug fix!!
#6

this is the /muteall command copyed from the axact script you downloaded

pawn Код:
if(strcmp(cmd,"/muteall",true) == 0)
{
new tmp[128];
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid,COLOR_BRIGHTRED,"Please login before you use this command!");
return 1;
}
if(PlayerInfo[playerid][Level] <= 2)
{
SendClientMessage(playerid,COLOR_RED,"You have to be Level 3 to use this command!");
return 1;
}
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
tmp = strtok(cmdtext, idx);
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string)," * You have all been muted by Admin %s",name);
SendClientMessageToAll(COLOR_YELLOW,string);
PlayerInfo[i][Muted] = 1;
}
}
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)