_Sweet_ 0 Odesláno: 4. Leden, 2014 Share Odesláno: 4. Leden, 2014 Ahojte potreboval by som do svojho gamemodu pridať že ak napríklad stlačím l.alt alebo enter pri nejakom určitom objekte tak sa niečo stane PROSIM PROSIM!!! prosím pomozte mi strasne to potrebujem p.s vcera som zacal s pawnom takze snad to chapete Link to comment Share on other sites More sharing options...
0 Deleted User 295 Odesláno: 4. Leden, 2014 Share Odesláno: 4. Leden, 2014 Tak si to tam pridaj Link to comment Share on other sites More sharing options...
0 _Sweet_ 0 Odesláno: 4. Leden, 2014 Author Share Odesláno: 4. Leden, 2014 neviem ako to napísať nepomohol by si mi? nejaky príklad? Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 4. Leden, 2014 Share Odesláno: 4. Leden, 2014 Toto dáš nahoru pod include nebo někam tam: #define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) Potom si najdi public OnPlayerKeyStateChange a tam přidáš toto: if(PRESSED(KEY_FIRE)) { //Tady se něco stane pokud v autě zmáčkne l.ALT a pokud není v autě tak L.CTRL nebo tlačítko utoku } http://wiki.sa-mp.com/wiki/Keys - Všechny jména detekovatelných kláves Link to comment Share on other sites More sharing options...
0 Tanga 131 Odesláno: 4. Leden, 2014 Share Odesláno: 4. Leden, 2014 Nekomplikuj mu to cez makrá, keď nevie ani základy..Sweet, http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange. Link to comment Share on other sites More sharing options...
0 Albus Brambůrek 41 Odesláno: 4. Leden, 2014 Share Odesláno: 4. Leden, 2014 Nekomplikuj mu to cez makrá, keď nevie ani základy.. Sweet, http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange. No myslím že než pochopí jak udělat když zmáčkne klávesu aby se milionkrát nevyvolala tak ten define je lepší možnost Link to comment Share on other sites More sharing options...
0 _Sweet_ 0 Odesláno: 4. Leden, 2014 Author Share Odesláno: 4. Leden, 2014 dakujem všetkým už mam čo potrebujem Link to comment Share on other sites More sharing options...
Dotaz
_Sweet_ 0
Ahojte potreboval by som do svojho gamemodu pridať že ak napríklad stlačím l.alt alebo enter pri nejakom určitom objekte tak sa niečo stane PROSIM PROSIM!!! prosím pomozte mi strasne to potrebujem p.s vcera som zacal s pawnom takze snad to chapete
Link to comment
Share on other sites
6 odpovědí na tuto otázku
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