Jump to content
  • 0

Problema Create Car


ToX1c

Question

Salut am si eu o problema la comanda /createcar nu pot sa o folosesc sa creez masina personala

if (strcmp(cmd, "/createcar", true) ==0 )
	{
	if(!IsPlayerAdmin(playerid)){return 1;}
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp)){return 1;}
	new vehiclemodel = strval(tmp);
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp)){return 1;}
	new color1 = strval(tmp);
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp)){return 1;}
	new color2 = strval(tmp);
	tmp = strtok(cmdtext,idx);
	if(!strlen(tmp)){return 1;}
	new price = strval(tmp);
	new Float:px,Float:py,Float:pz,Float:pa;
	GetPlayerPos(playerid,px,py,pz);
	GetPlayerFacingAngle(playerid,pa);
	Created++;
	VehicleSystem[Created][model]=vehiclemodel;
	VehicleSystem[Created][x]=px;
	VehicleSystem[Created][y]=py;
	VehicleSystem[Created][z]=pz;
	VehicleSystem[Created][a]=pa;
	VehicleSystem[Created][Farbe1]=color1;
	VehicleSystem[Created][Farbe2]=color2;
	VehicleSystem[Created][preis]=price;
	VehicleSystem[Created][owned]=0;
	strmid(VehicleSystem[Created][owner],"dealervehicle",0,128,128);
	new ccar = CreateVehicle(VehicleSystem[Created][model],VehicleSystem[Created][x],VehicleSystem[Created][y],VehicleSystem[Created][z],VehicleSystem[Created][a],VehicleSystem[Created][Farbe1],VehicleSystem[Created][Farbe2],600000);
	IDIS[ccar]=Created;
	SaveTool();
	return 1;
	}
Mai am o problema tot in legatura cu masinile pers, cand intra oricine pe server toate masinile sunt blocate si in sistemul de masini personale nu am lock nu am /v lock sau altceva sa inchida masina.Ce pot sa fac sa le deblochez asa am in vehicle.cfg
veh_model_1=411
veh_owned_1=0
veh_x_1=1558.484497
veh_y_1=-1011.746948
veh_z_1=23.633331
veh_a_1=180.351669
veh_Farbe1_1=1
veh_Farbe2_1=79
veh_owner_1=dealervehicle
veh_preis_1=1000000
veh_mod1_1=0
veh_mod2_1=0
veh_mod3_1=0
veh_mod4_1=0
veh_mod5_1=0
veh_mod6_1=0
veh_mod7_1=0
veh_mod8_1=0
veh_mod9_1=0
veh_mod10_1=0
veh_mod11_1=0
veh_mod12_1=0
veh_mod13_1=0
veh_mod14_1=0
veh_mod15_1=0
veh_mod16_1=0
veh_mod17_1=0
veh_paint_1=0

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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.