26.03.2018, 14:20
Don't use a timer for this! Use timestamps
https://sampforum.blast.hk/showthread.php?tid=254915%5D
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;
}