18.09.2010, 17:13
Hello,
I try to create a /me command, everything works with SendClientMessage, but the 3DText don't show up.
Does someone got a clue?
I used the tut on the wiki.
Thanks alot.
I try to create a /me command, everything works with SendClientMessage, but the 3DText don't show up.
Does someone got a clue?
pawn Код:
CMD:me(playerid, params[])
{
new str2[128];
if(sscanf(params, "s", str2))
{
SendClientMessage(playerid, 0xffffffff, "Usage: /me <action>");
return 1;
}
else
{
new Float:px, Float:py, Float:pz;
new message[150], pname[28];
GetPlayerName(playerid, pname, sizeof(pname));
format(message, sizeof(message), "** %s **", str2);
SendClientMessage(playerid, 0xffffffff, message);
me[playerid] = Create3DTextLabel(message,0xffffffff,30.0,40.0,50.0,40.0, 0, 0);
Attach3DTextLabelToPlayer(me[playerid], playerid, 0.0, 0.0, 0.7);
SetTimer("mecommand", 7000, false);
}
return 1;
}
Thanks alot.