Keys Pressed
#1

There functions that serve to make a single key is pressed?

Example:

SetPlayerKey(playerid, KEY_ACTION);

Or a way to do that.
Reply
#2

Sorry, you cannot set input.
Reply
#3

You can simulate it though, to trigger the function.
pawn Код:
CallLocalFunction("OnPlayerKeyStateChange", "ddd", playerid, KEY_ACTION, 0);
Reply
#4

CallLocalFunction("OnPlayerKeyStateChange", "ddd", playerid, KEY_FIRE, 0);
or
CallLocalFunction("OnPlayerKeyStateChange", "ddd", playerid, 4, 0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)