Jump to content

Cerere Tutorial


WeAreAnonymus

Recommended Posts

Nume:WeAreAnonymus

Nume tutorial:cum sa creezi masini personale si tunate

Descriere: as dori si eu sa imi arate cineva cum se fac masini tunate si sa le fac personale cu AttachObjectToVehicle dar sa imi explicati putin mai detaliat ca sunt mai greu de cap si tunate sa le fac din map editor adica sa le pun eu bari, spoilare etc!

30lgbvr.jpg
Link to comment
Share on other sites

prima oara am sa iti arat scriptu tot cum e , dupa aceea am sa iti explic :

new test[3];

new test2;

public OnGameModeInit()

{

test2 = CreateVehicle(vehicletype, X, Y, Z, rotation, color1, color2, respawn_delay);

test[0] = CreateObject(18652,0,0,-1000,0,0,0,100);

test[1] = CreateObject(18652,0,0,-1000,0,0,0,100);

AttachObjectToVehicle(test[0], test2,-0.8964, 0.0014, -0.5535, 0.0000, 0.0000, 0.0000);

AttachObjectToVehicle(test[1], test2,0.9101, 0.1104, -0.5535, 0.0000, 0.0000, 0.0000);

return 1;

}

cam atat a fost... acuma sa iti explic

new test[3]; = sunt obiectele pt fiecare player [3] e numarul de obiecte , in loc sa mai scrii : new test,test1,test2...si asa mai departe

new test2; este o functiie care "defineste" masina pe care vrei sa o "tunezi" in cazul nostru

CreateVehicle(vehicletype, X, Y, Z, rotation, color1, color2, respawn_delay); :

vehicletype = id-ul vehicului

x,y,z = pozitia

rotation = rotatia

colour1/2 = culoarea

respawn_delay = pune si tu...100

test[0] = CreateObject(18652,0,0,-1000,0,0,0,100); = CreateObject( model , restu..sincer nu stiu ce sunt :))

AttachObjectToVehicle(test[0], test2,-0.8964, 0.0014, -0.5535, 0.0000, 0.0000, 0.0000); = test[0] , ce e mai sus , test2 masina restu sunt coordonatele , le iei din map editor

sper ca ai inteles...daca nu sa revina un alt "coleg" sa explice mai bine

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.