KEY_LOOK_BEHIND Help !!! Scripters Help :(
#1

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 ?
Reply
#2

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 !!
Reply
#3

Quote:
Originally Posted by MCZOFT
Посмотреть сообщение
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 !!
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.
Reply
#4

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.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)