[Pedido] Anti Flood Comandos... - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Anti Flood Comandos... (
/showthread.php?tid=358730)
Anti Flood Comandos... -
Mercurio - 11.07.2012
Olб galera, boa tarde/noite.
Hoje estou aqui por um pedido de um Anti-Flood de Comandos, que funciona-se da seguinte maneira.
Se uma player digitar 3 vezes comandos em ( 2 segundos ), ele fosse bloqueado de utilizar comandos, por 30 segundos...
Alguйm poderia me ajudar?
Sou muito grato.
Re: Anti Flood Comandos... -
Don_Speed - 11.07.2012
https://sampforum.blast.hk/showthread.php?tid=358203
https://sampforum.blast.hk/showthread.php?tid=353344
Use o Search da Proxima Vez!
AW: Anti Flood Comandos... -
billy the kid - 11.07.2012
do jeito que vc quer ae nao tem ae pra procurar mais o ant floody tem milhoes por ae
olha esse akii >
pawn Код:
new Flood[MAX_PLAYERS];
#define FLOOD_SEGUNDOS 5
// No comando
if(Flood[playerid] < gettime()) return SendClientMessage(playerid, -1, "Aguarde "FLOOD_SEGUNDOS" segundos.");
Flood[playerid] = gettime() + FLOOD_SEGUNDOS;
ae o tempo eu nao sei fazer do jeito que vc quer mais esse ae ja e um inicio!
creditos desse codigo ae >>>>>>>>>>>>>> Ricop522 <