SA-MP Forums Archive
Help [Colorize Coronas] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help [Colorize Coronas] (/showthread.php?tid=475683)



Help [Colorize Coronas] - redreaper666 - 14.11.2013

Hey guys i could need some help.
I want to know if theres any way to color this Corona object: 19295 using SetObjectMaterial

Would be great to get working solutions


Re: Help [Colorize Coronas] - Jankingston - 14.11.2013

Its is impossible ( In my opinion ) but yet, u can do by attaching some objects thought ( But not a good idea )


Re: Help [Colorize Coronas] - redreaper666 - 14.11.2013

Well
This was the test command i made:

Код:
new Test[MAX_PLAYERS];
//------------------------------------------------------------------------------
CMD:dcorona(playerid, params[])
{
    DestroyObject(Test[playerid]);
    return 1;
}
//------------------------------------------------------------------------------
CMD:corona(playerid, params[])
{
    DestroyObject(Test[playerid]);
    Test[playerid] = CreateObject(19295, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    SetObjectMaterial(Test[playerid], 0, -1, "egg_texts", "easter_egg01", 0x9A0C95AA);
    AttachObjectToVehicle(Test[playerid], GetPlayerVehicleID(playerid), 0.0, 0.0, 1.0, 0.000000, 0.000000, 0.000000);
    return 1;
}
it works fine with object 1318 ,but when you do it on this object it gets invisible

youll need zcmd as include


Re: Help [Colorize Coronas] - redreaper666 - 16.11.2013

bump