SA-MP Forums Archive
[Pedido] if ((newkeys == KEY_SECONDARY_ATTACK)) - 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: [Pedido] if ((newkeys == KEY_SECONDARY_ATTACK)) (/showthread.php?tid=489237)



if ((newkeys == KEY_SECONDARY_ATTACK)) - goku114 - 21.01.2014

como eu posso botar para executar comandos com a tecla F em zcmd '-'


Re: if ((newkeys == KEY_SECONDARY_ATTACK)) - JonathanFeitosa - 21.01.2014

bote isso no OnPlayerKeyStateChange e use

pawn Код:
OnPlayerCommandText(playerid, "/exemplo");
Ou se desejar, Exemplos

Em ZCMD, Aqui


Re: if ((newkeys == KEY_SECONDARY_ATTACK)) - CharlieBrown - 21.01.2014

pawn Код:
cmd_comando(playerid, params);



Re: if ((newkeys == KEY_SECONDARY_ATTACK)) - goku114 - 21.01.2014

n tinha visto o edit


Re: if ((newkeys == KEY_SECONDARY_ATTACK)) - JonathanFeitosa - 21.01.2014

Ou em ZCMD, Aqui / І 2


Re: if ((newkeys == KEY_SECONDARY_ATTACK)) - caoraivoso3 - 21.01.2014

if ((newkeys & KEY_SECONDARY_ATTACK)) usa antes assim porque o que tas a usar e so seele tiver a carregar numa tecla o que estou a dar e se essa tecla estar a ser carregada.


Re: if ((newkeys == KEY_SECONDARY_ATTACK)) - ViniKuliveguisky - 21.01.2014

Se ainda nгo estб claro basta colocar:

Se for com parвmetro:

cmd_nomedocomando(playerid, params);

Se for sem parвmetro:

cmd_nomedocomando(playerid, #);