SA-MP Forums Archive
[Ajuda] Ant-Flod - 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: [Ajuda] Ant-Flod (/showthread.php?tid=347300)

Pages: 1 2


[Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

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...)


Re: [Ajuda] Ant-Flod - Edu33 - 01.06.2012

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.


Re: [Ajuda] Ant-Flod - sanalex - 01.06.2012

Aqui estб o Anti-Flood:

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

.


Re: [Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

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


Re: [Ajuda] Ant-Flod - sanalex - 01.06.2012

O que eu lhe indiquei й assim.


Re: [Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

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.


Re: [Ajuda] Ant-Flod - sanalex - 01.06.2012

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" );
    }
}



Re: [Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

Mesmos errors.


Re: [Ajuda] Ant-Flod - sanalex - 01.06.2012

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" );
}



Re: [Ajuda] Ant-Flod - Edu33 - 01.06.2012

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


Re: [Ajuda] Ant-Flod - sanalex - 01.06.2012

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);



Re: [Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

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


Re: [Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

Quote:

Nгo esquece de botar embaixo:

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

Coloca aonde '---'


Re: [Ajuda] Ant-Flod - sanalex - 01.06.2012

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);


Re: [Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

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.


Re: [Ajuda] Ant-Flod - sanalex - 01.06.2012

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

dcmd(respawn,7,cmdtext);

Eu editei lб o comando copia o novo.


Re: [Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

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.


Re: [Ajuda] Ant-Flod - sanalex - 01.06.2012

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;
}



Re: [Ajuda] Ant-Flod - Edu33 - 01.06.2012

Meu Deus...


Re: [Ajuda] Ant-Flod - Gustavo_Samp - 01.06.2012

Linha dcmd_respawn(playerid,params[]) {