Pulo15 0 Odesláno: 4. Říjen, 2009 Share Odesláno: 4. Říjen, 2009 Zdravim.Prosim Vas pomozte mi spravit taku vec.Ze ak kliknem obuskom tak jeden alebo vsetci si lahnu.Myslim ze som to videl v nejakom Prison Break alebo take nieco.Vdaka. Link to comment Share on other sites More sharing options...
0 癌癌癌 1 Odesláno: 4. Říjen, 2009 Share Odesláno: 4. Říjen, 2009 Zdravim.Prosim Vas pomozte mi spravit taku vec.Ze ak kliknem obuskom tak jeden alebo vsetci si lahnu.Myslim ze som to videl v nejakom Prison Break alebo take nieco.Vdaka. To bude keystate pak jestli ma v ruce obušek a pak kdo je blizko a tomu dat animaci lehnutí (když do vas nekdo boxuje tak si tim stylem lehnete) Link to comment Share on other sites More sharing options...
0 Pulo15 0 Odesláno: 9. Říjen, 2009 Author Share Odesláno: 9. Říjen, 2009 A neda sa tu nejaky kod nato napisat ? Nejak pribliznejsie ? Link to comment Share on other sites More sharing options...
0 JanikMan 0 Odesláno: 9. Říjen, 2009 Share Odesláno: 9. Říjen, 2009 Matus mas skype ?? To som ja Janco ak hej tak mi ho napis do SUKROMNEJ SPRAVY potrebujem s tebou nieco Link to comment Share on other sites More sharing options...
0 undertaker 10 Odesláno: 9. Říjen, 2009 Share Odesláno: 9. Říjen, 2009 mozna o tom udelam FS pokud se mi bude chtit Link to comment Share on other sites More sharing options...
0 Pulo15 0 Odesláno: 7. Leden, 2010 Author Share Odesláno: 7. Leden, 2010 Tak urob ta vec by sa fakt zisla ten keystate Link to comment Share on other sites More sharing options...
0 Rayman 0 Odesláno: 7. Leden, 2010 Share Odesláno: 7. Leden, 2010 Je to animacia cracku ta je best+GetDistanceBetweenPlayers(metre daj si aby ho okolo napr. 5 metrov (spusti animaciu)+OnPlayerKeyStateChange(daj si na klik) ine nepoznam dufam xD Link to comment Share on other sites More sharing options...
0 Pulo15 0 Odesláno: 8. Leden, 2010 Author Share Odesláno: 8. Leden, 2010 Animaciu mam, ale neviem ako spravit aby to reagovalo na kliknutie Link to comment Share on other sites More sharing options...
0 BestRanger 0 Odesláno: 8. Leden, 2010 Share Odesláno: 8. Leden, 2010 Dalši prijebany prison mod Link to comment Share on other sites More sharing options...
0 Pulo15 0 Odesláno: 9. Leden, 2010 Author Share Odesláno: 9. Leden, 2010 to je tvoj problem ze sa ti nepaci Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 9. Leden, 2010 Share Odesláno: 9. Leden, 2010 Dalši prije* prison mod Treba to chce do RP modu pro policajty ne? Link to comment Share on other sites More sharing options...
0 AvestX 5 Odesláno: 9. Leden, 2010 Share Odesláno: 9. Leden, 2010 Jestli chceš když ho obuškem praští tak si lehne, tak tuhle funkci sem hledal dlouho ( když jsem ještě dělal pawn ) tohle si dej kamkoli ale né do publicu. stock GetClosestPlayer(playerid) { new Float:x, Float:y, Float:z; new Float:x2, Float:y2, Float:z2; new Float:distance, Float:distance2; new ClosestPlayer; GetPlayerPos(playerid, x, y, z); distance = 9999; for(new i = 0; i < MAX_PLAYERS; i ++) { if(i != playerid) { GetPlayerPos(i, x2, y2, z2); x = x - x2; y = y - y2; distance2 = floatsqroot(x*x+y*y); if(distance2 < distance) { distance = distance2; ClosestPlayer = i; } } } return ClosestPlayer; } no a dej si do OnPlayerKey if(newkeys == ID_STRELBY) { new id = GetClosestPlayer(playerid); ApplyAnimation(id,....);//to si dopln na animaci lehnutí } Link to comment Share on other sites More sharing options...
0 Pulo15 0 Odesláno: 9. Leden, 2010 Author Share Odesláno: 9. Leden, 2010 OK Vdaka super. A to ID_STRELBY to je co ? nie ID zbrani ? Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 9. Leden, 2010 Share Odesláno: 9. Leden, 2010 ID Strelby, cili leveho tlacitka si najdi v Key ID's (wiki.sa-mp.com nebo tady v navodech) Link to comment Share on other sites More sharing options...
0 Pulo15 0 Odesláno: 10. Leden, 2010 Author Share Odesláno: 10. Leden, 2010 OK tlacidlo uz som nasiel, ale reaguje to na vsetky zbranie nie len na obusok.. treba tam neico este dat aby to islo len na obusok nie ? Link to comment Share on other sites More sharing options...
0 kernel252 1 Odesláno: 10. Leden, 2010 Share Odesláno: 10. Leden, 2010 OK tlacidlo uz som nasiel, ale reaguje to na vsetky zbranie nie len na obusok.. treba tam neico este dat aby to islo len na obusok nie ? Tak toto si tam pridaj. new zbran = GetPlayerWeapon(playerid); if(zbran != 3) return SendClientMessage(playerid, 0xff0000, "[sM] Musíš mať obušok !"); //Musíš mať obušok v ruke. Tá trojka znamená ID zbrane SendClientMessage(playerid, 0xff0000, "[sM] OK !"); // Sem si daj animáciu Link to comment Share on other sites More sharing options...
0 Pulo15 0 Odesláno: 10. Leden, 2010 Author Share Odesláno: 10. Leden, 2010 Ale ma to este jednu chybu preco lahnu vsetci ? a nie len ti, co su v blizkosti mna ? ale lahnu vsetci aj ked som daleko hmm... Link to comment Share on other sites More sharing options...
0 Guest Smaženy Syr Odesláno: 10. Leden, 2010 Share Odesláno: 10. Leden, 2010 nevadí šak bude vecsia vyplata xD Link to comment Share on other sites More sharing options...
0 kernel252 1 Odesláno: 10. Leden, 2010 Share Odesláno: 10. Leden, 2010 Ale ma to este jednu chybu preco lahnu vsetci ? a nie len ti, co su v blizkosti mna ? ale lahnu vsetci aj ked som daleko hmm... Toto si daj do forwardow: forward GetDistanceBetweenPlayers(playerid,playerid2); Toto si daj do toho prikazu ci co to mas: new id = GetClosestPlayer(playerid); if(GetDistanceBetweenPlayers(playerid, id) < 10){ // toto je vzdialenost hraca od druheho hraca Este toto: Od [other]Avest-X stock GetClosestPlayer(playerid) { new Float:x, Float:y, Float:z; new Float:x2, Float:y2, Float:z2; new Float:distance, Float:distance2; new ClosestPlayer; GetPlayerPos(playerid, x, y, z); distance = 9999; for(new i = 0; i < MAX_PLAYERS; i ++) { if(i != playerid) { GetPlayerPos(i, x2, y2, z2); x = x - x2; y = y - y2; distance2 = floatsqroot(x*x+y*y); if(distance2 < distance) { distance = distance2; ClosestPlayer = i; } } } return ClosestPlayer; } A toto niekde do modu: public GetDistanceBetweenPlayers(playerid,playerid2){ new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2; new Float:tmpdis; GetPlayerPos(playerid,x1,y1,z1); GetPlayerPos(playerid2,x2,y2,z2); tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2)); return floatround(tmpdis); } Link to comment Share on other sites More sharing options...
0 AvestX 5 Odesláno: 10. Leden, 2010 Share Odesláno: 10. Leden, 2010 Jupí sem zelenej, takže jsem moderátor locknu ti to. ano přesně jak řekl. Link to comment Share on other sites More sharing options...
0 Pulo15 0 Odesláno: 10. Leden, 2010 Author Share Odesláno: 10. Leden, 2010 ok vdaka idem to vyskusat, hadam uz to pojde -- ned 10. led 2010 20:16:44 -- KARNEL 252 ide to dobre, len som to musel trchu opravit mas tam chybu tam nema byt ze if(zbran != 3) ale if(zbran ==3) pretoze on musi mat zbran ID 3 nie nesmie mat zbran 3 Link to comment Share on other sites More sharing options...
0 kernel252 1 Odesláno: 10. Leden, 2010 Share Odesláno: 10. Leden, 2010 ok vdaka idem to vyskusat, hadam uz to pojde -- ned 10. led 2010 20:16:44 -- KARNEL 252 ide to dobre, len som to musel trchu opravit mas tam chybu tam nema byt ze if(zbran != 3) ale if(zbran ==3) pretoze on musi mat zbran ID 3 nie nesmie mat zbran 3 ako chces ale mam to dobre ide to ale ako chces... Link to comment Share on other sites More sharing options...
Dotaz
Pulo15 0
Zdravim.Prosim Vas pomozte mi spravit taku vec.Ze ak kliknem obuskom tak jeden alebo vsetci si lahnu.Myslim ze som to videl v nejakom Prison Break alebo take nieco.Vdaka.
Link to comment
Share on other sites
21 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