Mute, Unmute Command
#3

I Used the 2nd and a little edit and my stock is:

Код:
stock MutePlayer(playerid, iGivedBy, iTime, szReason[])
{
        if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Този играч не е в сървъра!");
        UTS_MuteTime[playerid] = gettime() + 60 * iTime;
        format(szReasonMute[playerid], 32, szReason);
        new szName[MAX_PLAYER_NAME], szString[168];
        new targetid;
        new TargetName[MAX_PLAYER_NAME];
        GetPlayerName(targetid, TargetName, sizeof(TargetName));
        GetPlayerName(iGivedBy, szName, MAX_PLAYER_NAME);
        format(szString, sizeof(szString), "{FF1E00}%s е заглушен от администратор %s за %d минута/и. [Причина: %s]", TargetName, szName, iTime, szReason);
        SendClientMessageToAll(-1, szString);
        return 1;
}
(Ignore the bugged text)

Now the problem is that when i type to mute other player it says <MYNAME> is muted by <MYNAME>

Where is the problem?? I don't know please help!
Reply


Messages In This Thread
Mute, Unmute Command - by Lixyde - 25.03.2018, 14:58
Re: Mute, Unmute Command - by BulletRaja - 25.03.2018, 15:02
Re: Mute, Unmute Command - by Lixyde - 25.03.2018, 16:12
Re: Mute, Unmute Command - by RxErT - 25.03.2018, 16:39
Re: Mute, Unmute Command - by 1fret - 26.03.2018, 01:15
Re: Mute, Unmute Command - by v1k1nG - 26.03.2018, 13:21
Re: Mute, Unmute Command - by Grim_ - 26.03.2018, 14:20
Re: Mute, Unmute Command - by v1k1nG - 26.03.2018, 15:06
Re: Mute, Unmute Command - by Grim_ - 26.03.2018, 15:14

Forum Jump:


Users browsing this thread: 3 Guest(s)