[AJUDA]Urgente anti bug
#10

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
Topo:
pawn Код:
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_JUMP))
    {
    Kick(playerid);
    }
    return 1;
}
PS: Mude o KEY_JUMP para a Tecla desejada.
Aqui vai uma lista :
https://sampwiki.blast.hk/wiki/GetPlayerKeys
Break este e o caso, o nъmero 0 nгo existe na linguagem do SA:MP, para montar em GM's e etc. Acredito com algumas plugins ele consiga.
Reply


Messages In This Thread
[AJUDA]Urgente anti bug - by [STR]Matrix - 07.04.2012, 23:48
Re: [AJUDA]Urgente anti bug - by humildadeforever - 08.04.2012, 12:10
Re: [AJUDA]Urgente anti bug - by KOman - 08.04.2012, 12:56
Re: [AJUDA]Urgente anti bug - by humildadeforever - 08.04.2012, 13:05
Re: [AJUDA]Urgente anti bug - by KOman - 08.04.2012, 13:38
Re: [AJUDA]Urgente anti bug - by [STR]Matrix - 08.04.2012, 15:24
Re: [AJUDA]Urgente anti bug - by BreakDriFT - 08.04.2012, 17:18
Re: [AJUDA]Urgente anti bug - by [STR]Matrix - 08.04.2012, 18:07
Re: [AJUDA]Urgente anti bug - by BreakDriFT - 08.04.2012, 18:16
Re: [AJUDA]Urgente anti bug - by .Skool_. - 08.04.2012, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)