HAving trouble with Keybinds for pawno script
#3

Assuming you're using NGRP.
You go to
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){

}
and add your 'cmd:enter' code under that. You take away the zcmd code and add
pawn Код:
if(newkeys == KEY_SECONDARY_ATTACK)
  {

  }
Then all your ENTER code goes within the curly brackets;
pawn Код:
{
         //Chunk of code.
           }
Like the other person said, you can't just use any keys. Use the ones that are available,
https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)