onplayertext & mute
#7

Quote:
Originally Posted by MyUndiesSmell
Посмотреть сообщение
That doesn't solve my problem nor did I want it to tie into my main chat format.
Try this
PHP код:
CMD:mute(playeridparams[])
{
    if(
eUser[playerid][e_USER_ADMIN_LEVEL] >= 1
    {
        new 
string[128], idreason[128];
        if(
sscanf(params"uS[128]"idreason)) return SendClientMessage(playeridCOLOR_ERROR"USAGE: /mute [playerid] [reason]");
        if(
mute[id] == 0)
        {
            
muted[id] = 1;
            
format(stringsizeof(string), "SERVER: %s has been muted by an admin (Reason: %s)"pName(id), reason);
            
SendClientMessageToAll(-1string);
        }
        else return 
SendClientMessage(playerid,COLOR_ERROR,"The specified player is already muted.");
      }
    else return 
SendClientMessage(playerid, -1"You are not a administrator!");
     return 
1;

Reply


Messages In This Thread
onplayertext & mute - by MyUndiesSmell - 18.01.2018, 21:18
Re: onplayertext & mute - by DeathCore - 18.01.2018, 21:47
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 22:32
Re: onplayertext & mute - by Fratello - 18.01.2018, 22:53
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 23:33
Re: onplayertext & mute - by RogueDrifter - 18.01.2018, 23:36
Re: onplayertext & mute - by 1fret - 18.01.2018, 23:43
Re: onplayertext & mute - by MyUndiesSmell - 18.01.2018, 23:44
Re: onplayertext & mute - by RogueDrifter - 18.01.2018, 23:52
Re: onplayertext & mute - by MyUndiesSmell - 19.01.2018, 00:03

Forum Jump:


Users browsing this thread: 2 Guest(s)