Mute, Unmute Command
#7

Don't use a timer for this! Use timestamps
pawn Код:
stock MutePlayer(playerid, duration) {
    gPlayerMuteTime[playerid] = gettime() + duration;
}

public OnPlayerText(playerid, text[]) {
    if(gPlayerMuteTime[playerid] > gettime()) {
        SendClientMessage(playerid, 0xFF0000FF, "You are muted.");
        return 0;
    }
    return 1;
}
https://sampforum.blast.hk/showthread.php?tid=254915%5D
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: 1 Guest(s)