[Ajuda] Textdraw Nick - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Textdraw Nick (
/showthread.php?tid=432733)
Textdraw Nick -
robertsz - 24.04.2013
Auguem pode me ajudar nao sei como colocar o nick do player tipo o nick fica mais quando entra outra pessoa o nick muda ajuda ae pf
Code
pawn Код:
new
Text:Textdraw10
;
public OnGameModeInit()
{
Textdraw10 = TextDrawCreate( 8.941410, 305.082885, "%s");
TextDrawLetterSize(Textdraw10, 0.356353, 1.874166);
TextDrawAlignment(Textdraw10, 1);
TextDrawColor(Textdraw10, -5963521);
TextDrawSetShadow(Textdraw10, 0);
TextDrawSetOutline(Textdraw10, 2);
TextDrawBackgroundColor(Textdraw10, 41215);
TextDrawFont(Textdraw10, 3);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetSelectable(Textdraw10, true);
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw10);
format(gString, sizeof(gString), "%s", Nome(playerid));
TextDrawSetString(Textdraw10, gString);
return 1;
}
Re: Textdraw Nick -
robertsz - 24.04.2013
Auguem ai ?
Re: Textdraw Nick -
Kmatsu - 24.04.2013
Crie 1 textdraw para kd player '-'
Re: Textdraw Nick -
robertsz - 24.04.2013
como assim ?
Re: Textdraw Nick -
Nill.Oliveira - 24.04.2013
https://sampwiki.blast.hk/wiki/GetPlayerName
Re: Textdraw Nick -
robertsz - 24.04.2013
mais no gm ja tem essa stock olha
Код:
stock Nome( playerid )
{
new Nome1[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome1, MAX_PLAYER_NAME);
return Nome1;
}
Re: Textdraw Nick -
Delete_ - 24.04.2013
PHP код:
new Text:Textdraw10[MAX_PLAYERS];
public OnGameModeInit()
{
for (new i; i < MAX_PLAYERS; i++)
{
Textdraw10[i] = TextDrawCreate( 8.941410, 305.082885, "%s");
TextDrawLetterSize(Textdraw10[i], 0.356353, 1.874166);
TextDrawAlignment(Textdraw10[i], 1);
TextDrawColor(Textdraw10[i], -5963521);
TextDrawSetShadow(Textdraw10[i], 0);
TextDrawSetOutline(Textdraw10[i], 2);
TextDrawBackgroundColor(Textdraw10[i], 41215);
TextDrawFont(Textdraw10[i], 3);
TextDrawSetProportional(Textdraw10[i], 1);
TextDrawSetSelectable(Textdraw10[i], true);
}
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw10[playerid]);
format(gString, sizeof(gString), "%s", Nome(playerid));
TextDrawSetString(Textdraw10[playerid], gString);
return 1;
}
Re: Textdraw Nick -
Nill.Oliveira - 24.04.2013
tente assim na sua callback OnPlayerConnect.
pawn Код:
public OnPlayerConnect(playerid)
{
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
TextDrawShowForPlayer(playerid, Textdraw10);
format(gString, sizeof(gString), "%s", Name);
TextDrawSetString(Textdraw10, gString);
return 1;
}
Re: Textdraw Nick -
robertsz - 24.04.2013
Valeu Delete_ + rep
Re: Textdraw Nick -
Delete_ - 24.04.2013
Disponha.