KEY_LOOK_BEHIND Help !!! Scripters Help :( - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: KEY_LOOK_BEHIND Help !!! Scripters Help :( (
/showthread.php?tid=520850)
KEY_LOOK_BEHIND Help !!! Scripters Help :( -
M0HAMMAD - 20.06.2014
Hi all
i have a cmd cuff ! (/cuff (PlayerName/ID))
i copyed in the KEY_LOOK_BEHIND and the ID always is 0 !
some one please help me
how can KEY_LOOK_BEHIND for use cmd /cuff ?
Re : KEY_LOOK_BEHIND Help !!! Scripters Help :( -
MCZOFT - 20.06.2014
I Qwear i dont know kind of request are ... dude i didn't understand anything ...
however , see this topic it can helps you out maybe ,
https://sampwiki.blast.hk/wiki/GetPlayerKeys
PS: Explain more what u want !!
Re: Re : KEY_LOOK_BEHIND Help !!! Scripters Help :( -
JordanDoughty - 20.06.2014
Quote:
Originally Posted by MCZOFT
|
Pretty much this is what he wants
When you press the button to look backwards it cuffs the nearest player.
It's impossible to make it cuff a certain ID when you press a key.
Re: KEY_LOOK_BEHIND Help !!! Scripters Help :( -
Cena44 - 20.06.2014
It cuffs ID 0 because there was no ID given, as I told you on skype, you won't be able to make the way you want. You can either re-code the whole cuff system so pressing KEY_LOOK_BEHIND would cuff the nearest player with a wanted level or leave it as it is.
Re: KEY_LOOK_BEHIND Help !!! Scripters Help :( -
Threshold - 20.06.2014
No, it's possible to add parameters to a command through OnPlayerKeyStateChange... so he can make it this way.
ZCMD:
pawn Код:
cmd_cuff(playerid, targetid);
/* Targetid would have to be in a string, example:
new string[MAX_PLAYER_NAME];
format(string, sizeof(string), "%d", targetid);
cmd_cuff(playerid, string);*/
Where 'string' is passed as command parameters.