[Pedido] Include criadora de novas teclas
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if ((newkeys == KEY_SECONDARY_ATTACK)) // KEY_SECONDARY_ATTACK й o "nome" da tecla que no caso й F
    {
        ShowPlayerDialog(playerid,DIALOG_LOGIN, DIALOG_STYLE_INPUT, "Minha dialog", "esta й minha dialog", "OK", "Sair");
    }
    return 1;
}
Nгo precisa de include, jб existe uma funзгo padrao do sa-mp para isto:

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

Lista de Keys (teclas): https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply


Messages In This Thread
Include criadora de novas teclas - by n0minal - 24.03.2013, 04:25
Re: Include criadora de novas teclas - by Gustavo Aguiar - 24.03.2013, 04:38
Re: Include criadora de novas teclas - by n0minal - 24.03.2013, 04:41
Re: Include criadora de novas teclas - by vitorvlv - 24.03.2013, 04:57
Re: Include criadora de novas teclas - by Lуs - 24.03.2013, 05:43
Re: Include criadora de novas teclas - by Schocc - 24.03.2013, 05:54
Re: Include criadora de novas teclas - by Gii - 24.03.2013, 05:54
Re: Include criadora de novas teclas - by leonardo1434 - 24.03.2013, 09:44
Re: Include criadora de novas teclas - by Schocc - 24.03.2013, 09:51
Re: Include criadora de novas teclas - by leonardo1434 - 24.03.2013, 10:01

Forum Jump:


Users browsing this thread: 1 Guest(s)