23.01.2013, 19:56
(
Последний раз редактировалось Mattakil; 23.01.2013 в 21:05.
)
Okay, so Im trying to make a plow system, and the object that I used for the plow is default white, I want to make it black but it did nothing IG
SS of the plow on Yosemite:
Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new plow1 = CreateObject(3047,0,0,-1000,0,0,0,100);
new plow2 = CreateObject(3047,0,0,-1000,0,0,0,100);
new chain = CreateObject(2680,0,0,-1000,0,0,0,100);
// new plow3 = CreateObject(3047,0,0,-1000,0,0,0,100);
// new plow4 = CreateObject(3047,0,0,-1000,0,0,0,100);
// new chain2 = CreateObject(2680,0,0,-1000,0,0,0,100);
SetObjectMaterial(plow1, 1, -1, "none", "none", 0x000000FF);
SetObjectMaterial(plow2, 1, -1, "none", "none", 0x000000FF);
SetObjectMaterial(chain, 1, -1, "none", "none", 0x000000FF);
AttachObjectToVehicle(plow1, 1795, -0.899999,3.075001,-0.449999,0.000000,-18.899999,-90.540008);
AttachObjectToVehicle(plow2, 1795, 0.824999,3.075001,-0.449999,0.000000,-18.899999,-90.540008);
AttachObjectToVehicle(chain, 1795, 0.000000,2.820000,-0.289999,0.000000,36.000003,180.899887);
/*if(strcmp("/pup", cmdtext, true, 10) == 0)
{
MoveObject(plow1, 0,0,-1000, 2.00);
MoveObject(plow2, 0,0,-1000, 2.00);
MoveObject(chain, 0,0,-1000, 2.00);*/
return 1;
}
return 0;
}

