TextDraw Help
#1

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
Reply
#2

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

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

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.
Reply
#5

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)