Posts: 85
Threads: 20
Joined: Jul 2014
Reputation:
0
How can I make the player to press the key "2" (KEY_LOOK_BEHIND) I know to detect in onplayerkeystatechange.
But i want to make something like this
OnPlayerEnterCheckPoint(playerid)
{
if(CP[playerid] == 10)
{
PressKeyForPlayer(playerid,KEY_LOOK_BEHIND);
SendClientMessage(playerid,-1,"Key '2' was pressed for you");
}
return 1;
}
Is this possible?
Posts: 1,098
Threads: 14
Joined: Feb 2013
Reputation:
0
Don't think it's possible, you could change his camera position to the back if that's what are you trying to do, or just call the OnPlayerKeyStateChange if you wanna trigger it.
Posts: 85
Threads: 20
Joined: Jul 2014
Reputation:
0
That Function check if I press a key, not press for me.
Posts: 85
Threads: 20
Joined: Jul 2014
Reputation:
0
I want to press that key for me. If I am in stunt plane and i put that funtion he need ti activate the red smoke. Something like this. I want to click for me.
Posts: 455
Threads: 29
Joined: Apr 2014
I dont get the point, for system to click 2. You can just send message of that.
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
There is no possible way to script it nor there is a function which makes the buttons automatically pressed for the player.
Just like the above user's statement, Just send a message over the player. (E.G: "Press 2 to activate the red smoke from the Stunt Plane."