SA-MP Forums Archive
How to show textdraw[MAX_PLAYERS] show for a player? - 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)
+--- Thread: How to show textdraw[MAX_PLAYERS] show for a player? (/showthread.php?tid=614888)



How to show textdraw[MAX_PLAYERS] show for a player? - Maheerali - 14.08.2016

Код:
new Text:pData[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
pData[playerid] = TextDrawCreate(154.200073, 146.346710, "My data");
    TextDrawLetterSize(pData[playerid], 0.317999, 1.338666);
    TextDrawAlignment(pData[playerid], 1);
    TextDrawColor(pData[playerid], -1);
    TextDrawSetShadow(pData[playerid], 0);
    TextDrawSetOutline(pData[playerid], 1);
    TextDrawBackgroundColor(pData[playerid], 51);
    TextDrawFont(pData[playerid], 1);
    TextDrawSetProportional(pData[playerid], 1);
}
CMD:showscore(playerid, params[])
{
      TextDrawShowForPlayer(playerid, pData[MAX_PLAYERS]);
      return 1;
}

//Show all players data for the player who use /showscore.



Re: How to show textdraw[MAX_PLAYERS] show for a player? - Shinja - 14.08.2016

pData[playerid]
PHP код:
TextDrawShowForPlayer(playeridpData[playerid]); 
And use PlayerTextDraws better


Re: How to show textdraw[MAX_PLAYERS] show for a player? - justice96 - 14.08.2016

Use this: https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw