Jump to content

AttachObjectToVehicle


Gireada

Recommended Posts

Aveti nevoie de:

Map Editor

Pawn++.

Cunostinte de scripting.

1.Deci deschidem Map Editor-ul, si ne ducem la Coordonatele 0, 0, 0 .

Tutorial1.jpg

2.Stergem obiectul acesta pentru a vedea vehiculul.

[img width=500 height=400] Tutorial2.jpg

3.Introducem vehiculul dorit.

[img width=500 height=400] Tutorial3.jpg

4.Si o mutam la coordonatele 0.0000, 0.0000, 0.000

[img width=500 height=399] Tutorial4.jpg

5.Selectam No Vortex lighting pentru a vedeam vehiculul alb.

[img width=500 height=400] Tutorial5.jpg

6.Cautam obiectul dorit.

[img width=500 height=312] Tutorial6.jpg

7.Ii dam ADD si o inseram pe vehicul.

[img width=500 height=400] Tutorial7.jpg

8.Luam coordonatele obiectului si mergem in pawn.

[img width=500 height=399] Tutorial8.jpg

9.Acolo vom pune coordonatele obiectului la Atas, iar obiectul sa aiba coordonatele 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000.

[img width=500 height=400] Tutorial9.jpg

10.Creiam vehiculul, iar functia va fi astfel:

AttachObjectToVehicle(idobiecte, idvehicul, x, y, z, rx, ry, rz);

Sper ca vam explicat bine.

Daca nu ati inteles lasati com

  • Upvote 2

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 1 month later...

Am o eroare  :rolleyes:

[pawn]D:\GTA\Servere & GameModuri\GM\gamemodes\DM.pwn(194) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

[/pawn]

Si linia 194:

[pawn]    new tank = AddStaticVehicle(432 , 1576.5013, -1608.5553, 13.2744, 179.1116, -1, -1, 100);[/pawn]

Link to comment
Share on other sites

AddStaticVehicle(432 , 1576.5013, -1608.5553, 13.2744, 179.1116, -1, -1, 100); la addstaticvehicle nu se pune timer pentru respawn.

Incearca:[pawn]AddStaticVehicle(432 , 1576.5013, -1608.5553, 13.2744, 179.1116, -1, -1);[/pawn]

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...
  • 11 months later...
  • 2 weeks later...
  • 2 weeks later...
  • 10 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.