Admin Chat Command and Mute
#2

You need a little code to send client message for admins. Add this stock on top of your script.

pawn Код:
stock SendClientMessageToAdmins(color, msg[]) for(new i; i < MAX_PLAYERS; i++) if(PlayerInfo[i][pAdminLevel] >= 1) SendClientMessage(i, color, msg);
After adding this, all you need to do is making a comment like "/a" and using SendClientMessageToAdmins on there.

And on second one, try adding this at OnPlayerText function;

pawn Код:
if(IsMuted[playerid] == 1) return SendClientMessage(playerid, -1, "You are currently muted!");
Reply


Messages In This Thread
Admin Chat Command and Mute - by _Khaled_ - 24.08.2012, 14:05
Re: Admin Chat Command and Mute - by Calabresi - 24.08.2012, 14:43
Re: Admin Chat Command and Mute - by _Khaled_ - 24.08.2012, 16:05
Re: Admin Chat Command and Mute - by Akira297 - 24.08.2012, 16:07
Re: Admin Chat Command and Mute - by Calabresi - 24.08.2012, 16:07
Re: Admin Chat Command and Mute - by _Khaled_ - 24.08.2012, 16:12
Re: Admin Chat Command and Mute - by _Khaled_ - 24.08.2012, 16:14
Re: Admin Chat Command and Mute - by Calabresi - 24.08.2012, 16:19
Re: Admin Chat Command and Mute - by Luke_James - 24.08.2012, 16:42
Re: Admin Chat Command and Mute - by _Khaled_ - 24.08.2012, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)