SetObjectMaterial
#1

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

Код:
#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;
}
SS of the plow on Yosemite:

Reply


Messages In This Thread
SetObjectMaterial Not Working - by Mattakil - 23.01.2013, 19:56
Re: SetObjectMaterial - by Mattakil - 23.01.2013, 21:05
Re: SetObjectMaterial - by jonrb - 24.01.2013, 00:18
Re: SetObjectMaterial - by Mattakil - 24.01.2013, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)