Text on character
#1

How do i insert text on every character?
Reply
#2

What do you mean? If you mean literally on top of a character, use 3D texts or chat bubbles.

SetPlayerChatBubble

Create3DTextLabel
Attach3DTextLabelToPlayer
Reply
#3

No, just as I create two teams.
When I look to chose a character from my team, shows " dls clan" and when I chose othert character, shows "other clan"
sry bad engglish'
Reply
#4

Oh, you mean text in character selection.

GameTextForPlayer
OnPlayerRequestClass


pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
  if(classid == 0)
  {
    GameTextForPlayer(playerid, "~r~this is a text on top of the character", 3000, 4);
  }
  else
  {
    GameTextForPlayer(playerid, "~b~and so is this", 3000, 4);
  }
  return 1;
}
Reply
#5

public OnPlayerRequestClass(playerid, classid)

{
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,0.0);
SetPlayerPos(playerid,-1521.0341,677.5056,139.2734);
SetPlayerCameraPos(playerid,-1524.9583,681.2976,136.5882);
SetPlayerCameraLookAt(playerid,-1521.0341,677.5056,139.2734);
{


{
if(classid == 0)
{
GameTextForPlayer(playerid, "member 1", 3000, 4);
}
else
{
GameTextForPlayer(playerid, "member 2", 3000, 4);
}



return 1;
}

}
}
I ve added this but how to add "member 3" then "member 4" etc...?
Reply
#6

pawn Код:
public OnPlayerRequestClass(playerid, classid)

{
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid,0.0);
SetPlayerPos(playerid,-1521.0341,677.5056,139.2734);
SetPlayerCameraPos(playerid,-1524.9583,681.2976,136.5882);
SetPlayerCameraLookAt(playerid,-1521.0341,677.5056,139.2734);
{


  {
  if(classid == 0)
  {
    GameTextForPlayer(playerid, "member 1", 3000, 4);
  }
if(classid == 2)
  {
    GameTextForPlayer(playerid, "member 2", 3000, 4);  // And so on......
  }
 
  else
  {
    GameTextForPlayer(playerid, "member 3", 3000, 4);
  }
 
 
 
  return 1;
  }

  }
  }

Ehh i didnt test it, but as i know from pickups this should work. Try and tell me.

Btw. shoru! Use [pawn] ... [/pawn) <== this is a "]" too)

to insert pawn codes!!

Hope i helped you.

Greetz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)