VoDnIk168 0 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 Servus dávám sem lehký script na opravu, flip, přidání nitra a hydrauliky pomocí tlačítka Tlačítko :8 = Oprava Tlačítko :6 = Hydraulika Tlačítko :4 = Flip Tlačítko :2 = Nitro //============================================================================== #include //============================================================================== #define OPRAVIT KEY_ANALOG_UP #define NITRO KEY_ANALOG_DOWN #define FLIP KEY_ANALOG_LEFT #define HYDRAULIKA KEY_ANALOG_RIGHT //============================================================================== public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new vehicleid = GetPlayerVehicleID(playerid); //============================================================================== if(newkeys & NITRO) { if(IsPlayerInVehicle(playerid,vehicleid)) { PlayerPlaySound(playerid,1133,0.0,0.0,0.0); AddVehicleComponent(vehicleid,1010); GameTextForPlayer(playerid,"Nitro Pridano!",2000,3); } return 1; } //============================================================================== if(newkeys & FLIP) { if(IsPlayerInVehicle(playerid,vehicleid)) { PlayerPlaySound(playerid,1133,0.0,0.0,0.0); RepairVehicle(GetPlayerVehicleID(playerid)); new Float:z; if(IsPlayerInAnyVehicle(playerid)){ GetVehicleZAngle(GetPlayerVehicleID(playerid),z); SetVehicleZAngle(GetPlayerVehicleID(playerid),z); GameTextForPlayer(playerid,"Vozidlo Otoceno!",2000,3); } } return 1; } //============================================================================== if(newkeys & HYDRAULIKA) { if(IsPlayerInVehicle(playerid,vehicleid)) { PlayerPlaySound(playerid,1133,0.0,0.0,0.0); AddVehicleComponent(vehicleid,1087); GameTextForPlayer(playerid,"Hydraulika Pridana!",2000,3); } return 1; } //============================================================================== if(newkeys & OPRAVIT) { if(IsPlayerInVehicle(playerid,vehicleid)) { PlayerPlaySound(playerid,1133,0.0,0.0,0.0); RepairVehicle(GetPlayerVehicleID(playerid)); GameTextForPlayer(playerid,"Vozidlo Opraveno!",2000,3); } return 1; } return 0; } //============================================================================== (wm že je to blbej název nenapadlo mě jak to pojmenovat ) Můžete si změnit tlačítka: http://wiki.sa-mp.com/wiki/GetPlayerKeys Link to comment Share on other sites More sharing options...
mattmatt 20 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 Nicovní 10/10 Hafo Cool Nápad Link to comment Share on other sites More sharing options...
Guest Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 Použil bych PRESSED ale dá se to Link to comment Share on other sites More sharing options...
VoDnIk168 0 Odesláno: 16. Listopad, 2011 Author Share Odesláno: 16. Listopad, 2011 Nicovní 10/10 Hafo Cool Nápad díky Použil bych PRESSED ale dá se to taky díky od tebe si toho vážím Link to comment Share on other sites More sharing options...
Rayman 0 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 taky díky od tebe si toho vážím -,-, prečo práve od neho? Kvôli počtu príspevkov? (ja ti teraz niečo poviem a to jedným slovom, spam /zbytočné príspevky/hodnotenia,každopádne zbytočné..FS/Mody(...)). Váž si aj to malé díky, rovnako... Link to comment Share on other sites More sharing options...
VoDnIk168 0 Odesláno: 16. Listopad, 2011 Author Share Odesláno: 16. Listopad, 2011 taky díky od tebe si toho vážím -,-, prečo práve od neho? Kvôli počtu príspevkov? (ja ti teraz niečo poviem a to jedným slovom, spam/zbytočné príspevky/hodnotenia,každopádne zbytočné FS/Mody(...)). Váž si aj to malé díky, rovnako... lol prostě si myslim že je hodně dobrý pawner a sem rád že mi to pochválil! a jedinej kdo to spamuje si ty. ps (ja ti teraz niečo poviem a to jedným slovom, spam/zbytočné príspevky/hodnotenia,každopádne zbytočné FS/Mody(...)).ty asi neumíš počítat co Link to comment Share on other sites More sharing options...
Guest Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 takže ak stlačím niaku klávesu, vyskočí že niesom v aute ? KEY_ANALOG_UP ? čo ak budem točiť a budem chcieť otočiť kameru a vyskočí "Niesi v aute" ? lebo idem peši a vyskočí že niesom v aute... Link to comment Share on other sites More sharing options...
VoDnIk168 0 Odesláno: 16. Listopad, 2011 Author Share Odesláno: 16. Listopad, 2011 takže ak stlačím niaku klávesu, vyskočí že niesom v aute ? KEY_ANALOG_UP ? čo ak budem točiť a budem chcieť otočiť kameru a vyskočí "Niesi v aute" ? lebo idem peši a vyskočí že niesom v aute... to mě nenapadlo díky dal sem to pryč Link to comment Share on other sites More sharing options...
Corleone 0 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 Není to zlé ale dá sa aj na iné klávesy? :? Link to comment Share on other sites More sharing options...
DooM 93 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 Není to zlé ale dá sa aj na iné klávesy? :? si to predelej ne? http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange http://wiki.sa-mp.com/wiki/GetPlayerKeys Link to comment Share on other sites More sharing options...
Corleone 0 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 Není to zlé ale dá sa aj na iné klávesy? :? si to predelej ne? http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange http://wiki.sa-mp.com/wiki/GetPlayerKeys Práve to sa pýtam že ako... Link to comment Share on other sites More sharing options...
Corleone 0 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 DooM sry som bol slepý nezbadal som linky :D:D Link to comment Share on other sites More sharing options...
DooM 93 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 Tady mas seznam definovanych klavesnic : http://wiki.sa-mp.com/wiki/GetPlayerKeys a v tom skriptu mas #define blablabla nazev klavesy tkze napr. v te tabulce mame jako treti KEY_FIRE (coz je leve tlacitko mysi) tak dosadis : #define blablabla KEY_FIRE chapes? Link to comment Share on other sites More sharing options...
PitBull_R34 0 Odesláno: 16. Listopad, 2011 Share Odesláno: 16. Listopad, 2011 Přesně to sem hledal dík určitě to zkusim dát na server Link to comment Share on other sites More sharing options...
LeeDoriftar 0 Odesláno: 18. Listopad, 2011 Share Odesláno: 18. Listopad, 2011 "cyclops" Link to comment Share on other sites More sharing options...
5agent55 0 Odesláno: 22. Listopad, 2011 Share Odesláno: 22. Listopad, 2011 NICE 10/10 cool napad zide sa :rap: Link to comment Share on other sites More sharing options...
VoDnIk168 0 Odesláno: 22. Listopad, 2011 Author Share Odesláno: 22. Listopad, 2011 NICE 10/10 cool napad zide sa :rap: díky Link to comment Share on other sites More sharing options...
Guest Odesláno: 22. Listopad, 2011 Share Odesláno: 22. Listopad, 2011 daj kontrolu, či auto podporuje hydrauliku a nitro... inač spadne hra/server Link to comment Share on other sites More sharing options...
Majitel ffredyk 167 Odesláno: 22. Listopad, 2011 Majitel Share Odesláno: 22. Listopad, 2011 Použil bych PRESSED ale dá se to Tyhle definice PRESSED, RELEASED a ta třetí co jsou na wikině, jsou na ho*no... Link to comment Share on other sites More sharing options...
Guest Odesláno: 22. Listopad, 2011 Share Odesláno: 22. Listopad, 2011 Prečo ? Link to comment Share on other sites More sharing options...
seky29 0 Odesláno: 4. Prosinec, 2011 Share Odesláno: 4. Prosinec, 2011 nedal bych si sem link mne to nejde skompilovat ďakujem. Link to comment Share on other sites More sharing options...
VoDnIk168 0 Odesláno: 4. Prosinec, 2011 Author Share Odesláno: 4. Prosinec, 2011 http://www.freefiles.cz/download/623A2B3C2B6C/ Link to comment Share on other sites More sharing options...
Oliver 0 Odesláno: 8. Červenec, 2012 Share Odesláno: 8. Červenec, 2012 neskousel sem to ale podle popisu celkem 8/10 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