27.01.2011, 08:13
(
Last edited by iggy1; 27/01/2011 at 08:17 AM.
Reason: epic typos
)
If you look on page two of the bug reports section i have a topic there about this exact same thing no one has replied. It is a bug because not even incognitos streamer can attach objects to players.
I had this very simple code which should work. (but doesn't)
I had this very simple code which should work. (but doesn't)
pawn Code:
new Text3D:ij_viptitles[MAX_PLAYERS];//global
new ij_hastitle[MAX_PLAYERS];// " "
COMMAND:viptitle(playerid, params[])
{
if(ij_vipdata[playerid][ij_viplogged])
{
if(isnull(params))return SendClientMessage(playerid,LRED,"ERROR: Usage /viptitle [title/name]");
else if(strlen(params) > 25)return SendClientMessage(playerid,LRED,"ERROR: That title is too long max length is 25");
else
{
SendClientMessage(playerid, GREEN, "Use /titleoff to remove your title");
if(ij_hastitle[playerid] == 1)
return Update3DTextLabelText(ij_viptitles[playerid], ORANGE, params);
else
{
new
Float:x,
Float:y,
Float:z;
GetPlayerPos(playerid, x, y, z);
ij_viptitles[playerid] = Create3DTextLabel(params,ORANGE, x, y, z, 50.0, GetPlayerVirtualWorld(playerid), 0);
Attach3DTextLabelToPlayer(ij_viptitles[playerid], playerid, 0.0, 0.0, 0.5);//if i comment this line the 3d text is created
ij_hastitle[playerid] = 1; //at the players location. (static)
return 1;
}
}
}
else SendClientMessage(playerid,LRED,"You Don't Have Permission To Use That Command");
return 1;
}