20.08.2013, 22:39
I use this code under on player connect , but the object is created but no text there .
pawn Код:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
new Rules1;
new Rules2;
new Rules3;
Rules1 = CreateObject(19371, 2052.00, -1897.51, 13.29, 0.00, 0.00, 270.40);
Rules2 = CreateObject(19371, 1763.69, -1883.68, 14.19, 0.00, 0.00, 269.50);
Rules3 = CreateObject(19371, 1189.26, -1127.10, 24.69, 0.00, 0.00, 0.52);
SetPlayerObjectMaterialText(playerid, Rules1, "{FFFFFF}Read {FF0080}/pc /rules /dm /cmds", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
SetPlayerObjectMaterialText(playerid, Rules2, "{FFFFFF}Read {FF0080}/pc /rules /dm /cmds", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
SetPlayerObjectMaterialText(playerid, Rules3, "{FFFFFF}Read {FF0080}/pc /rules /dm /cmds", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////