Jump to content
  • 0

pomoc Poradit


Lukynek

Dotaz

Čauko potřebuju pomoci attach object nebo nějaky tutorial hlavně i v pawnu nebo kdyby byl nějaky pomocny pawner naučil by mě to ja rad za to něco dam potřeboval bych napawnit auto s radlici + nějaky ty objekty ja mam urobeny auta s radlici ale dam je do hry a nespawne se to tak potřeboval bych pomoci 
Muj Discord: Lukynek#3457
předem diky

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Globální moderátor

Hele, takhle to tady nefunguje. Ukaž kód jak to máš a lidi ti tady pomůžou. Pokud se to chceš naučit, musíš se snažit sám a ne, že ti to někdo bude diktovat. Je tu spousta návodů, stačí kouknout. A prosím, zkus psát smysluplné věty a ne průjem slov. Díky

Link to comment
Share on other sites

  • 0

co se k tomu ma dal přidat?
#include <a_samp>
#include <streamer>

new sabre;

public OnFilterScriptInit()
{
    new tmpobjid;

    sabre = CreateVehicle(475,1332.343,1573.536,10.671,225.182,0,0,-1,0);

    tmpobjid = CreateDynamicObject(19917,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.090, 1.921, -0.160, 0.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(1046,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.040, -0.860, -0.109, 0.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(18694,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.377, -3.319, -2.273, 8.399, -2.999, 177.200);
    tmpobjid = CreateDynamicObject(18694,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -0.508, -2.748, -2.085, -0.199, 3.899, -179.500);
}

public OnFilterScriptExit()
{
    DestroyVehicle(carvid);
}

public OnVehicleSpawn(vehicleid)
{
    if(vehicleid == carvid)
    {
    }
}

Link to comment
Share on other sites

  • 0
  • Globální moderátor
před 6hodinami, Lukynek said:

co se k tomu ma dal přidat?
#include <a_samp>
#include <streamer>

new sabre;

public OnFilterScriptInit()
{
    new tmpobjid;

    sabre = CreateVehicle(475,1332.343,1573.536,10.671,225.182,0,0,-1,0);

    tmpobjid = CreateDynamicObject(19917,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.090, 1.921, -0.160, 0.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(1046,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.040, -0.860, -0.109, 0.000, 0.000, 0.000);
    tmpobjid = CreateDynamicObject(18694,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, 0.377, -3.319, -2.273, 8.399, -2.999, 177.200);
    tmpobjid = CreateDynamicObject(18694,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0);
    AttachDynamicObjectToVehicle(tmpobjid, carvid, -0.508, -2.748, -2.085, -0.199, 3.899, -179.500);
}

public OnFilterScriptExit()
{
    DestroyVehicle(carvid);
}

public OnVehicleSpawn(vehicleid)
{
    if(vehicleid == carvid)
    {
    }
}

 

Auto, které vytváříš má název proměnné sabre. Objekty přidáváš na carvid. Takže se to nikdy nehodí na tvoje auto.

Link to comment
Share on other sites

  • -1

Zkusil jsem opravit tvůj kod, a funguje. Zkus to.

 

#include <a_samp>
#include <streamer>
#include <zcmd>

#define SCM SendClientMessage

new special;

public OnFilterScriptExit()
{
	DestroyVehicle(special);
	return 1;
}

public OnVehicleSpawn(vehicleid)
{
	if(vehicleid == special)
	{
	}
	return 1;
}

CMD:car(playerid)
{
 	new tuning1;
	new tuning2;
	new tuning3;
	new tuning4;

	SCM(playerid,-1,"Auto bylo spawnuto.");

////////////////////////////////////////////////////////////////////////////////

	special = CreateVehicle(411, 2035.7532,1337.3281,10.8203, 0,0,-1,0);

	tuning1 = CreateObject(19601, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
	tuning2 = CreateObject(19777, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
	tuning3 = CreateObject(19620, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
	tuning4 = CreateObject(18728, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
	



	AttachObjectToVehicle(tuning1, special, 0.02465, 2.64856, -0.14000,   193.00000, 0.00000, 0.00000);
	AttachObjectToVehicle(tuning2, special, 0.06050, 2.01670, 0.13140,   10.00000, 0.00000, 180.00000);
	AttachObjectToVehicle(tuning3, special, 0.01630, 0.01880, 0.72290,   0.00000, 0.00000, 0.00000);
	AttachObjectToVehicle(tuning4, special, -0.03831, -2.66077, 0.23900,   0.00000, 90.00000, -90.00000);

	return 1;
}

 

  • Nope 1
  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

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