22.10.2018, 05:58
(
Последний раз редактировалось Shamal; 22.10.2018 в 06:02.
Причина: Forgot to add some details
)
I have made a command to teleport player to different interiors. Using /int [id] the player can go to the interior to which the [id] belongs to. But I want to bind this command to a keyboard button (Such as Y a.k.a KEY_YES) so that when Y is pressed, cmd_int(playerid, id); is called and the player is teleported to the interior. How do I do this? Please help me.
I tried doing it in OnPlayerKeyStateChange and OnPlayerUpdate + GetPlayerKeys but I'm unable to bind the command to the key
I tried doing it in OnPlayerKeyStateChange and OnPlayerUpdate + GetPlayerKeys but I'm unable to bind the command to the key