Jump to content

Recommended Posts

Posted

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:

Scriem

#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)
	{
		DestroyVehicle(GetPlayerVehicleID(playerid));
		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!

Downloads

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.

Posted

Asta nu e tutorial.

Ce-ai facut tu aici a fost sa copiezi niste lucruri dintr-un GameMode (RSS v2 cred) si sa le postezi ca un asa zis "Tutorial".

3r4AlPA.png

Posted

LoL sunt facute de mine :)) si nam avut ce face sunt multi care fac comanda gen nrg de 21 linii cu multe variabile :P

Pentru ei am pus asta nu pentru aia avansati!

I'm back bitches.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.