Jump to content

KEY TO COMMAND


OscarJoaca

Recommended Posts

Pai, cauti in GM(ctrl+f):

public OnPlayerKeyStateChange 

Daca nu ai, adaugi tu asta:

 

public OnPlayerKeyStateChange
{
//aici pui bind-ul
return 0;
}
Dupa, ca sa faci un bind, trebuie sa faci asa:
Pui asta:
if (newkeys & KEY_LOOK_BEHIND)
{
//aici pui tot ce contine comanda /engine inafar de prima si ultima paranteza
}

Aici ai o lista cu bind-uri https://wiki.sa-mp.com/wiki/Keys

Succes!

Scuze dar nu prea ma pricep la tutoriale. :)

Edited by FuNNkY123
Link to comment
Share on other sites

Pai, cauti in GM(ctrl+f):

public OnPlayerKeyStateChange 

Daca nu ai, adaugi tu asta:

 

public OnPlayerKeyStateChange
{
//aici pui bind-ul
return 0;
}
Dupa, ca sa faci un bind, trebuie sa faci asa:
Pui asta:
if (newkeys & KEY_LOOK_BEHIND)
{
//aici pui tot ce contine comanda /engine inafar de prima si ultima paranteza
}

Aici ai o lista cu bind-uri https://wiki.sa-mp.com/wiki/Keys

Succes!

Scuze dar nu prea ma pricep la tutoriale. :)

Adica prima si ultima paranteza? 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.