Jump to content

Tutorial de creare a unei masini/motociclete


Recommended Posts

Salut tuturor sunt eXorcism si va voi prezenta cum faceti o masina /motocicleta in cel mai usor mod.

Pentru a incepe trebuie sa stiti ca va trebuie includeul ZCMD(creat de zeex) il gasiti jos la downloads.

Pasul 1:

Pornim pawno si dam new dupa care dam ctrl+a si stergem tot.

Pasul 2:


#include <a_samp>
#include <zcmd>
new CurrentSpawnedVehicle[MAX_PLAYERS];
Pasul 3: Facem comanda(in cazul nostru comenzile)
CMD:nrg( playerid, params[ ] )
	if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "{FF0000}|ERROR|: {FFFFFF}Esti deja intr-un nrg date jos si incearca din nou!");// verifica daca esti deja intr-o masina daca da iti da mesajul asta.
	SendClientMessage(playerid, -1, "{FF0000}|Mesaj|: {FFFFFF}NRG-500 creat cu succes!");
	aCreateThing(playerid, 522, 191);// functia care iti spawneaza masina
	PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);// functia care aplica un sonor la folosirea comenzi!
	return 1;
CMD:elegy( playerid, params[ ] )
	if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "{FF0000}|ERROR|: {FFFFFF}Esti deja intr-un elegy date jos si incearca din nou!");
	SendClientMessage(playerid, -1, "{FF0000}|ERROR|: {FFFFFF}Elegy creat cu succes!");
	aCreateThing(playerid, 411, 191);
	PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
	return 1;
Pasul 4: punem urmatorul stock dupa comanda NRG/elegy
stock aCreateThing(playerid, thingid, orderid)
    new Vehicles[250];
	new world = GetPlayerVirtualWorld(playerid);
	new interior = GetPlayerInterior(playerid);
	new Float:X, Float:Y, Float:Z, Float:Angle;
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
		GetPlayerPos(playerid, X, Y, Z);
	        GetPlayerFacingAngle(playerid, Angle);
		CurrentSpawnedVehicle[ playerid ] = Vehicles[orderid] = CreateVehicle(thingid, X, Y, Z + 3, Angle, -1, -1, 40);
                LinkVehicleToInterior(CurrentSpawnedVehicle[ playerid ], interior);
		SetVehicleVirtualWorld(CurrentSpawnedVehicle[ playerid ], world);
		SetVehicleZAngle(CurrentSpawnedVehicle[ playerid ], Angle);
		PutPlayerInVehicle(playerid, CurrentSpawnedVehicle[ playerid ], 0);
		SetPlayerInterior(playerid, interior);


Puteti Folosi pentru a crea orice masina/motocicleta

Acesta a fost Tutorialul sper sa nu incepeti sa spuneti ca lam copiat de la cineva!


Zcmd http://forum.sa-mp.com/showthread.php?t=91354&highlight=zcmd

FS cu cele 2 comenzi:

AMX http://www.solidfiles.com/d/818dcb2f37/

PWN http://www.solidfiles.com/d/02007c8e9d/

I'm back bitches.

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.

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.