25.08.2012, 16:32
Assuming you're using NGRP.
You go to
and add your 'cmd:enter' code under that. You take away the zcmd code and add
Then all your ENTER code goes within the curly brackets;
Like the other person said, you can't just use any keys. Use the ones that are available,
https://sampwiki.blast.hk/wiki/GetPlayerKeys
You go to
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
}
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)
{
}
pawn Код:
{
//Chunk of code.
}
https://sampwiki.blast.hk/wiki/GetPlayerKeys