is their a way
#1

Код:
TextDrawSetString(Textdraw2, "You Typed /cmd");
is their a way to make it change the text for the person who typed the cmd not everyone?
Reply
#2

pawn Код:
TextDrawShowForPlayer();
Reply
#3

that doesnt quite answer my question
Reply
#4

Yes, when player types /cmd you need to change the string of your text draw.
Reply
#5

use this as definition:
pawn Код:
new Text: Textdraw2[MAX_PLAYERS];
and on your gamemode or filterscript init where you create the textdraw, etc...
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
  Textdraw2[i] = TextDrawCreate....
}
and later on your code:
pawn Код:
TextDrawSetString(Textdraw2[playerid], "You Typed /cmd"");
*Note: remind to add a [playerid] behind each "Textdraw2"^^
Reply
#6

Quote:
Originally Posted by Sascha
Посмотреть сообщение
use this as definition:
pawn Код:
new Text: Textdraw2[MAX_PLAYERS];
and on your gamemode or filterscript init where you create the textdraw, etc...
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
  Textdraw2[i] = TextDrawCreate....
}
and later on your code:
pawn Код:
TextDrawSetString(Textdraw2[playerid], "You Typed /cmd"");
*Note: remind to add a [playerid] behind each "Textdraw2"^^
thanks <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)