Jump to content

CreateChangeVeh| NOU v0.2 (Schimbare de vehicul cu pickup ca in MTA)


irinel1996

Recommended Posts

Salut...

Am facut un include, pentru a schimba de vehicul ca in MTA, cu pickup. xD

Info:

CreateChangeVeh(ModelPickup, NewCarID, X,Y,Z,"Text");

- ModelPickup: recomand 1317.

- NewCarID: e ID-ul vehiculului care se va crea si va da jucatorului.

- X,Y,Z: destul de clar, coordonate.

- "Text": recomand sa pui numele al masinii care i se va da.

NOTE: Maximul de pickups pentru asa ceva e 100, schimbati valoarea in include la MAX_PCambio.

Exemplu:

[pawn]#include <a_samp>

#include <CVeh>

public OnFilterScriptInit()

{

start_sveh(); // <- IMPORTANT!

    CreateChangeVeh(1317, 568, -1278.9349,8.3187,14.0159,"Bandito");

    CreateChangeVeh(1317, 411, -1269.6934,-0.9024,14.0159,"Infernus");

return 1;

}[/pawn]

Imagini:

http://imageshack.us/f/20/43925054.jpg/ <- Nou, v0.2 (Screenshot)

http://www.youtube.com/watch?v=iLofTgdU7qE <- Vechi, v0.1

Download:

1. http://solidfiles.com/d/6ee2e/  <- v0.2 (Nou)

Credits:

-irinel1996

Am lasat un FS test, daca aveti dubii.

Daca aveti sugestii sau ceva, comentati.

Salutari...

Atte. irinel1996

Working on:

-[FS]iTuning (With ALL components & Neons).

-[FS]iRadar (Advanced Speed Cameras).

Link to comment
Share on other sites

irinel, nu mai uploada pe prostia aia de site, uploadeaza pe www.solidfiles.com, nu ne pune sa asteptam 40 secunde O.o

Sau pe www.pastebin.com pentru asta:

new vehicleid = GetPlayerVehicleID(playerid);
	new Float:Velocidad[3], Float:X, Float:Y, Float:Z, Float:Angulo;
 	GetVehiclePos(vehicleid, X,Y,Z); GetVehicleZAngle(vehicleid,Angulo);
  	GetVehicleVelocity(vehicleid, Velocidad[0], Velocidad[1], Velocidad[2]);
	DestroyVehicle(vehicleid);
	new NewVeh = CreateVehicle(NewCar,X,Y,Z,Angulo,129,129,180);
	PutPlayerInVehicle(playerid,NewVeh,0);
	SetVehicleVelocity(NewVeh, Velocidad[0], Velocidad[1], Velocidad[2]);

ia spawneaza tu un vehicul cu aceasta functie, deconecteaza-te, conecteaza-te, du-te sa vezi daca a disparut si repeta procesul, cu asta se fac sute de vehicule.

Link to comment
Share on other sites

stuntman[]!" post="90799" timestamp="1314536868"]

irinel, nu mai uploada pe prostia aia de site, uploadeaza pe www.solidfiles.com, nu ne pune sa asteptam 40 secunde O.o

Sau pe www.pastebin.com pentru asta:

new vehicleid = GetPlayerVehicleID(playerid);
	new Float:Velocidad[3], Float:X, Float:Y, Float:Z, Float:Angulo;
 	GetVehiclePos(vehicleid, X,Y,Z); GetVehicleZAngle(vehicleid,Angulo);
  	GetVehicleVelocity(vehicleid, Velocidad[0], Velocidad[1], Velocidad[2]);
	DestroyVehicle(vehicleid);
	new NewVeh = CreateVehicle(NewCar,X,Y,Z,Angulo,129,129,180);
	PutPlayerInVehicle(playerid,NewVeh,0);
	SetVehicleVelocity(NewVeh, Velocidad[0], Velocidad[1], Velocidad[2]);

ia spawneaza tu un vehicul cu aceasta functie, deconecteaza-te, conecteaza-te, du-te sa vezi daca a disparut si repeta procesul, cu asta se fac sute de vehicule.

Stai sa vad, dar cred ca stiu de ce e.

Testing...

(Solidfiles la mine nu merge. :( O sa folosesc pastebin de acum.)

____________________________________________

EDIT: Am facut cea ceai zis, dar nu se intampla ce zici tu. Daca te uiti in script, sterg vehiculul nu il respawnez.

Working on:

-[FS]iTuning (With ALL components & Neons).

-[FS]iRadar (Advanced Speed Cameras).

Link to comment
Share on other sites

Stai sa vad, dar cred ca stiu de ce e.

Testing...

(Solidfiles la mine nu merge. :( O sa folosesc pastebin de acum.)

____________________________________________

EDIT: Am facut cea ceai zis, dar nu se intampla ce zici tu. Daca te uiti in script, sterg vehiculul nu il respawnez.

Eu zic de vehiculul nou creat, nu de cel vechi. Cel nou creat nu se va distruge la Disconnect.
Link to comment
Share on other sites

stuntman[]!" post="90803" timestamp="1314538493"]

Eu zic de vehiculul nou creat, nu de cel vechi. Cel nou creat nu se va distruge la Disconnect.

Aaaa, nu. Eu nu vreu sal distrug, credeam ca imi zici de alea care se sterg cand intru in pickup. Dar cel nou creat, nu vreu sal distrug.

Se va distruge cand dau restart la server.

Working on:

-[FS]iTuning (With ALL components & Neons).

-[FS]iRadar (Advanced Speed Cameras).

Link to comment
Share on other sites

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.

×
×
  • 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.