SA-MP Forums Archive
[Ajuda] Callbeck Chamada Ao Ataca(EXPLICO MELHOR) - 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] Callbeck Chamada Ao Ataca(EXPLICO MELHOR) (/showthread.php?tid=649048)



Callbeck Chamada Ao Ataca(EXPLICO MELHOR) - Andersonsouza - 01.02.2018

Olб Boa

Eu Aqui Denovo KKK, Hoje queria devenvolver Um anti-cheat. Queria Saber qual callbeck й chamada quando um player da, por exemplo uma faca, que nгo necesariamente seja em alguem ou algo mais sim no ar


IMAGEM PIC CHAMATIVA




Re: Callbeck Chamada Ao Ataca(EXPLICO MELHOR) - GuiKommander - 01.02.2018

Cara use a OnPlayerUpdate, Eu Acho melhor criar um Timer, e nesse timer verificar as aзхes que o Player Faz.


Re: Callbeck Chamada Ao Ataca(EXPLICO MELHOR) - SpikeCompiler - 02.02.2018

https://sampwiki.blast.hk/wiki/OnPlayerUpdate


Re: Callbeck Chamada Ao Ataca(EXPLICO MELHOR) - IlanZ - 02.02.2018

https://sampwiki.blast.hk/wiki/OnPlayerUpdate
https://sampwiki.blast.hk/wiki/GetPlayerWeapon
https://sampwiki.blast.hk/wiki/GetPlayerWeaponState


Re: Callbeck Chamada Ao Ataca(EXPLICO MELHOR) - RodrigoMSR - 02.02.2018

PHP код:
public OnPlayerUpdate(playerid)
{
    switch(
GetPlayerAnimationIndex(playerid))
    {
        case 
749750751754:
        {
            
//deu uma facada
        
}
    }
    return 
1;