Barot Posted November 23, 2010 Share Posted November 23, 2010 I want to make a thread that is "activated" when the player presses a key, but I down know how to do it.. i justo know this code 00E1: player X pressed_key Z.. but i dont know which number is each key, and i think this only functions for the keys in game (jump, crouch, sprint, etc) i know how to coding, but im new in gta sa Link to comment Share on other sites More sharing options...
Nahiyan Posted November 23, 2010 Share Posted November 23, 2010 Read a tutorial. And stop posting multiple topics please, Its better if you ask all of your questions in 1 topic. Link to comment Share on other sites More sharing options...
Barot Posted November 23, 2010 Author Share Posted November 23, 2010 Sorry I will do that from now ^^.. I have already read the tutorial (very good really) but I dont know how to do that code.. I have seen mods that by pressing "tab + <any key>" something happens.. I want to know wich code is "Player_press Tab + <any key>" so i can make this code: wait 0 msuntil Player_press Tab + <any key> I want to do that, but I dont know the REAL code for pressing a key Link to comment Share on other sites More sharing options...
BnB Posted November 23, 2010 Share Posted November 23, 2010 Something like this while true wait 0 for [email protected] = 8 to 222 if and 0AB0: key_pressed 0x9 not [email protected] = 0x9 0AB0: key_pressed [email protected] then end endend Link to comment Share on other sites More sharing options...
Bennington Posted November 23, 2010 Share Posted November 23, 2010 Opcode 0AB0 For key numbers, press F12 while in Sanny Builder, then go to CLEO 3 Code Library -> Virtual key codes (for 0AB0) Link to comment Share on other sites More sharing options...
Barot Posted November 23, 2010 Author Share Posted November 23, 2010 thank both of you!! The cleo opcode 0AB0 can be used in the main script or it only functions when im making a cleo mod? Link to comment Share on other sites More sharing options...
Silent Posted November 24, 2010 Share Posted November 24, 2010 If you have CLEO installed, then all new opcodes can be used in main too Link to comment Share on other sites More sharing options...
Barot Posted November 24, 2010 Author Share Posted November 24, 2010 ok, thank you for answering my questions u.u.. haha Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now