SA-MP Forums Archive
3dtextlabel - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 3dtextlabel (/showthread.php?tid=130714)



3dtextlabel - bartje01 - 28.02.2010

Hey guys. I wanna make a admin cmd that when you do /tl (playerid) (grove), you will get that above your name.
But I want to learn about 3etext label. can someone send me a link?


Re: 3dtextlabel - Miguel - 28.02.2010

pawn Код:
new Text3D:ThreeD[MAX_PLAYERS];
pawn Код:
public OnPlayerConnect(playerid)
{
  ThreeD[playerid] = Create3DTextLabel("I'm a groove member", COLOR, 0.0, 0.0, 0.0, 0.0, 0, 0); // change COLOR for the real color and "i'm a..." for your text
  return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid)
{
  Delete3DTextLabel(ThreeD[playerid])
  return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/command", true) == 0) //
  {
    Attach3DTextLabelToPlayer(ThreeD[playerid], playerid, 0.0, 0.0, 1); // offset
    return 1;
  }
  return 0;
}



Re: 3dtextlabel - bartje01 - 28.02.2010

Thanks . but I want that that I can do it with rcon admin
like /grove (playerid)



Re: 3dtextlabel - bartje01 - 28.02.2010

anyone?