SA-MP Forums Archive
TextDraw Help - 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: TextDraw Help (/showthread.php?tid=519946)



TextDraw Help - Battlezone - 16.06.2014

I have a standard textdraw ( shows for all players ) , and i want to change its string for only one player, how to do that?

example:
pawn Код:
if(PlayerInfo[i][Team] == TEAM_ADMIN)
{
            TextDrawSetString(Message, MessageStr2);
            TextDrawShowForPlayer(i, Message);
}
I want the message str2 string to show for i only, but it shows for all players


Re: TextDraw Help - Sandiel - 16.06.2014

Change the 'i' to the playerid you wish to show the textdraw to.
example: TextDrawShowForPlayer(playerid, Message);


Re: TextDraw Help - Battlezone - 16.06.2014

The i is the playerid whom i want to send the string to , lol!


Re: TextDraw Help - Sandiel - 16.06.2014

Well it's supposed to be sent to players who are under TEAM_ADMIN. If it doesn't, and it sends the textdraw to everyone online, you should post the command/function this snippet is taken from + the definitions of these textdraws ect.


Re: TextDraw Help - Battlezone - 16.06.2014

Its not about posting the whole code, its about setting the string of a textdraw already shown to all players for a specific player


Re: TextDraw Help - Sandiel - 16.06.2014

Oh I understand now, I misread your topic sorry
Well, if you're talking about changing the string for one player, but keeping it the same for the other players, I'm not really sure it's currently possible with one function.
You can maybe create another string though, for this said player.