[Ajuda] Ant-Flod
#1

Olб pessoal, bкm eu procurei o ANT-FLOD no search e nгo achei o que eu queria! Nem o comando de respawnar carro, Sк vocкs puderem me ajudar, por favor.... =3.


(EU GOSTARIA, DO ANTI-FLOD, FOSSE AQUELE QU VOCК FALA 3 VEZES, AI ELE VAI ACUSAR, : ANT-FLOD PROXIMA VEZ KICK...)
Reply
#2

Quote:

if(!strcmp(cmdtext, "/respawn", true))
if(IsPlayerAdmin(playerid))
{
for(new v; v<MAX_VEHICLES; v++) SetVehicleToRespawn(v);
return SendClientMessage(playerid, -1, "Veiculos Respawnados" );
}

Tem que logar na rcon, se quiser mude para a variбvel do seu sistema de admin -'
E o anti flood tem no Search sim.
Reply
#3

Aqui estб o Anti-Flood:

https://sampforum.blast.hk/showthread.php?tid=255865

.
Reply
#4

eu gostaria de um que o gara fala 3 vez sem para ai aparece uma mensagкm : Ant Flod Prox vez KICK.
Reply
#5

O que eu lhe indiquei й assim.
Reply
#6

Edu 33 Coloquei deu uma pa de erro...

Codigo
dcmd_respawn(playerid,params[]) {
if(!strcmp(cmdtext, "/rc", true))
if(IsPlayerAdmin(playerid))
{
for(new v; v<MAX_VEHICLES; v++) SetVehicleToRespawn(v);
return SendClientMessage(playerid, -1, "Veiculos Respawnados" );
}


ERROS


D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(261) : error 017: undefined symbol "UpdateConfig"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(717) : error 017: undefined symbol "DestroyAllMenus"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(782) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(787) : error 017: undefined symbol "SaveToFile"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(796) : error 017: undefined symbol "SaveToFile"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(810) : error 017: undefined symbol "SaveToFile"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(833) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(841) : error 017: undefined symbol "LoginPlayer"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(862) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(863) : error 017: undefined symbol "SaveToFile"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(889) : error 017: undefined symbol "SavePlayer"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(890) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(890) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(900) : error 017: undefined symbol "CarDeleter"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(905) : error 017: undefined symbol "AdvanceSpectate"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(934) : error 017: undefined symbol "pName"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(944) : error 017: undefined symbol "pName"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(970) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(972) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(979) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(980) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(981) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(982) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(983) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(984) : error 017: undefined symbol "PlayerName2"
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(1023) : error 017: undefined symbol "AdvanceSpectate"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#7

Tenta agora:

pawn Код:
dcmd_respawn(playerid,params[]) {
if(!strcmp(cmdtext, "/rc", true))
if(IsPlayerAdmin(playerid))
{
for(new v; v<MAX_VEHICLES; v++) SetVehicleToRespawn(v);
return SendClientMessage(playerid, -1, "Veiculos Respawnados" );
    }
}
Reply
#8

Mesmos errors.
Reply
#9

Bota isso no GM:

pawn Код:
if(!strcmp(cmdtext, "/respawn", true))
if(IsPlayerAdmin(playerid))
{
for(new v; v<MAX_VEHICLES; v++) SetVehicleToRespawn(v);
return SendClientMessage(playerid, -1, "Veiculos Respawnados" );
}
Reply
#10

Mais que diabo tu fez ae? o.O'
Kkkkkkkkkkkkkkkkkkkkkkkkkkkk nгo aguentei tive que rir
Reply
#11

Claro achei o erro:

pawn Код:
dcmd_respawn(playerid,params[]) {
if(IsPlayerAdmin(playerid))
{
for(new v; v<MAX_VEHICLES; v++) SetVehicleToRespawn(v);
return SendClientMessage(playerid, -1, "Veiculos Respawnados" );    
}
Qual sua variбvel de admin?

Nгo esquece de botar embaixo:

pawn Код:
dcmd(respawn,7,cmdtext);
Reply
#12

Se eu colocar no gm funfa?, pq no meu gm nao deu error....
Reply
#13

Quote:

Nгo esquece de botar embaixo:

pawn Code:
dcmd(respawn,7,cmdtext);

Coloca aonde '---'
Reply
#14

Nгo agora pode botar no FS mesmo.

Coloquei para o comando para o Administrador se vc utiliza o Ladmin.

pawn Код:
dcmd_respawn(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 4) { // 4 й o level
for(new v; v<MAX_VEHICLES; v++) SetVehicleToRespawn(v);
return SendClientMessage(playerid, -1, "Veiculos Respawnados" );
} else return SendClientMessage(playerid,0xFF0000AA,"ERRO: Vocк precisa ter nнvel 4 para usar este comando!");  
}
Isso aqui pфe embaixo:

dcmd(respawn,7,cmdtext);
Reply
#15

Boa manobrau, agora so falta tira esse warning..


D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(6763) : warning 203: symbol is never used: "dcmd_respawn"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#16

Pфe isso aqui embaixo ou junto com os outros:

dcmd(respawn,7,cmdtext);

Eu editei lб o comando copia o novo.
Reply
#17

Quote:

Pфe isso aqui embaixo ou junto com os outros:

dcmd(respawn,7,cmdtext);

D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(1383) : warning 209: function "dcmd_respawn" should return a value
D:\Desktop\Servidor 0.3e Samp Server\filterscripts\lad.pwn(137 : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#18

Ver agora:

pawn Код:
dcmd_respawn(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 4) { // 4 й o level
for(new v; v<MAX_VEHICLES; v++) SetVehicleToRespawn(v);
return SendClientMessage(playerid, -1, "Veiculos Respawnados" );
} else return SendClientMessage(playerid,0xFF0000AA,"ERRO: Vocк precisa ter nнvel 4 para usar este comando!");  
    return 1;
}
Reply
#19

Meu Deus...
Reply
#20

Linha dcmd_respawn(playerid,params[]) {
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)