3dtextlabel
#1

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?
Reply
#2

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;
}
Reply
#3

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

anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)