Ant Fake Kill -
matheuspain - 21.07.2012
Pessoal sou novo no Forum , preciso da ajuda de vocкs tenho um servidor ultimamente estava batendo 42/60
na hora em que bateu 42 Online , comeзaram a atakar com "FakeKill" eu acho , aquele negosso que da nivel de procura e comete db no cara que ta atakando
pesso ajuda de vocкs para me arrumarem um Ant FakeKill que funcione procurei aqui no forum , achei alguns mais nгo funcionam , por isso resolvi criar a conta para pedir a ajuda de vocкs
Re: Ant Fake Kill -
Gii - 21.07.2012
voce pode encontrar varios
Clicando Aqui
Re: Ant Fake Kill -
leonardo1434 - 21.07.2012
Funcional >
Clique aqui
Re: Ant Fake Kill -
matheuspain - 21.07.2012
Leonardo , muito obrigado
porem deu 2 Warning se tiver como me ajudar a tirar
Код:
C:\Documents and Settings\Matheus\Meus documentos\Downloads\BMG\gamemodes\BMG.pwn(8210) : warning 225: unreachable code
C:\Documents and Settings\Matheus\Meus documentos\Downloads\BMG\gamemodes\BMG.pwn(8540) : warning 209: function "OnPlayerDeath" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 12160 bytes
Re: Ant Fake Kill -
leonardo1434 - 21.07.2012
Vocк fez algo de errado, pois o cуdigo acima й funcional(nгo contкm erros)l. Reveja o que fizeste.
Re: Ant Fake Kill -
matheuspain - 21.07.2012
Botei nas minhas "new"
Код:
new totaldemortes[MAX_PLAYERS];
Botei na minha public OnPlayerDeath(playerid, killerid, reason)
Код:
{
totaldemortes[playerid]++;
if(totaldemortes[playerid] > 2) return SendClientMessage(playerid,-1,"Crйditos a tio le le leo.!"),Ban(playerid);
SetTimerEx("funfa", 1000, false, "i",playerid);
return 1;
}
Botei nas minhas "forward's"
Код:
forward funfa(playerid);
botei nas minhas public certinho e aconteceu os dois warnings
Код:
public funfa(playerid)
{
totaldemortes[playerid] = 0;
}
Код:
C:\Documents and Settings\Matheus\Meus documentos\Downloads\BMG\gamemodes\BMG.pwn(8196) : warning 225: unreachable code
C:\Documents and Settings\Matheus\Meus documentos\Downloads\BMG\gamemodes\BMG.pwn(8526) : warning 209: function "OnPlayerDeath" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 12148 bytes
Code size: 2382148 bytes
Data size: 2252264 bytes
Stack/heap size: 16384 bytes; estimated max. usage=7159 cells (28636 bytes)
Total requirements: 4662944 bytes
2 Warnings.
Re: Ant Fake Kill -
Recolocado - 21.07.2012
Eu e o Matheus jб conseguimos, obrigado а quem ajudou
Re: Ant Fake Kill -
Arthenry - 21.07.2012
Deixe seu cуdigo assim:
pawn Код:
{
totaldemortes[playerid]++;
if(totaldemortes[playerid] > 2) return SendClientMessage(playerid,-1,"Crйditos a tio le le leo.!"),Ban(playerid);
SetTimerEx("funfa", 1000, false, "i",playerid);
}
Re: Ant Fake Kill -
matheuspain - 22.07.2012
Код:
C:\Documents and Settings\Matheus\Meus documentos\Downloads\BMG\gamemodes\BMG.pwn(8531) : warning 209: function "OnPlayerDeath" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 12148 bytes
Code size: 2382124 bytes
Data size: 2252264 bytes
Stack/heap size: 16384 bytes; estimated max. usage=7159 cells (28636 bytes)
Total requirements: 4662920 bytes
1 Warning.
com o Codigo acima eu consegui tirar 1 warning , falta + 1 alguem ?
Re: Ant Fake Kill -
ShutDown_ - 22.07.2012
Vocк esqueceu a return do onplayerdeath no final antes de fechar a public poe return 1;
antes da ultima } do onplayerdeath