SetObjectMaterialText - 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: SetObjectMaterialText (
/showthread.php?tid=381069)
SetObjectMaterialText -
[TC]XxJuggaloxX - 28.09.2012
When I try to make the object via a command. It wont show up. It wont even show up if I have it in OnGameModeInit
I'm not talking about the just the text either, The object wont show up.
I have no idea what is wrong. I tried it on another script from the SAMP Server package, And they show up fine. Any ideas?
pawn Код:
CMD:text(playerid, params[])
{
new myobject = CreateObject(11453, 10, 10, 10, 0.0, 0.0, 90.0);
SetObjectMaterialText(myobject, "SA-MP", 0, 90, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, 1);
SendClientMessageEx(playerid, COLOR_GRAD1, "Object Made...");
return 1;
}
Re: SetObjectMaterialText -
XtremeR - 28.09.2012
try this:
pawn Код:
CMD:text(playerid, params[])
{
new myobject[MAX_PLAYERS];
myobject[playerid] = CreateObject(11453, 10, 10, 10, 0.0, 0.0, 90.0);
SetObjectMaterialText(myobject[playerid], "SA-MP", 0, 90, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, 1);
SendClientMessageEx(playerid, COLOR_GRAD1, "Object Made...");
return 1;
}