SA-MP Forums Archive
Text on character - 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: Text on character (/showthread.php?tid=109779)



Text on character - shoru - 22.11.2009

How do i insert text on every character?



Re: Text on character - Finn - 22.11.2009

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

SetPlayerChatBubble

Create3DTextLabel
Attach3DTextLabelToPlayer



Re: Text on character - shoru - 22.11.2009

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'


Re: Text on character - Finn - 22.11.2009

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;
}



Re: Text on character - shoru - 22.11.2009

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...?


Re: Text on character - Jeffry - 22.11.2009

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