KEY_LOOK_BEHIND - 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 (
/showthread.php?tid=526693)
KEY_LOOK_BEHIND -
Juvanii - 18.07.2014
Why this:
pawn Код:
if(GetPlayerState(targetid) == PLAYER_STATE_ONFOOT) GameTextForPlayer(targetid,"~b~An Officer Has Issued You A Ticket~n~~w~Press ~b~~k~~PED_LOOKBEHIND~ ~w~Or Type ~b~/pay ~w~To Pay The Ticket",7000,5);
returns this:
Why it returns a Star instead of MMB as default key??
Re: KEY_LOOK_BEHIND -
acade - 18.07.2014
Have you tried other keys? Such as ~k~~CONVERSATION_YES~
Re: KEY_LOOK_BEHIND -
Juvanii - 18.07.2014
everything is working except this special key. maybe cuz it has a 'cross' near it in the wiki (Value: 320✝)
Wiki: [✝] This value is the sum of KEY_LOOK_LEFT and KEY_LOOK_RIGHT.
https://sampwiki.blast.hk/wiki/Keys
Re: KEY_LOOK_BEHIND -
Ihateyou - 18.07.2014
just type press MMB
Re: KEY_LOOK_BEHIND -
Juvanii - 18.07.2014
Quote:
Originally Posted by Ihateyou
just type press MMB
|
lol wtf? this is not a solution.
Re: KEY_LOOK_BEHIND -
Cypress - 18.07.2014
I've tried your code and it shows MMB for me, there's no star. What @Ihateyou meant is that if it's impossible for you to make it work, just do it manually like:
pawn Код:
if(GetPlayerState(targetid) == PLAYER_STATE_ONFOOT) GameTextForPlayer(targetid,"~b~An Officer Has Issued You A Ticket~n~~w~Press ~b~MMB ~w~Or Type ~b~/pay ~w~To Pay The Ticket",7000,5);
Re: KEY_LOOK_BEHIND -
Juvanii - 18.07.2014
I don't want to set it manually, some players don't have MMB for the "Look Behind Key"
How it worked for ya? what did you do ?
Re: KEY_LOOK_BEHIND -
Cypress - 18.07.2014
Quote:
Originally Posted by Juvanii
I don't want to set it manually, some players don't have MMB for the "Look Behind Key"
How it worked for ya? what did you do ?
|
I did copy your code and pasted it into my script. Maybe you don't have MMB and it doesn't work for you then?
Re: KEY_LOOK_BEHIND -
Juvanii - 19.07.2014
Quote:
Originally Posted by Cypress
Maybe you don't have MMB and it doesn't work for you then?
|
I'm really dumb, lol yea that's why!