is their a way - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: is their a way (
/showthread.php?tid=256440)
is their a way -
CrazyBlob - 20.05.2011
Код:
TextDrawSetString(Textdraw2, "You Typed /cmd");
is their a way to make it change the text for the person who typed the cmd not everyone?
Re: is their a way -
grand.Theft.Otto - 21.05.2011
Re: is their a way -
CrazyBlob - 21.05.2011
that doesnt quite answer my question
Re: is their a way -
Toreno - 21.05.2011
Yes, when player types /cmd you need to change the string of your text draw.
Re: is their a way -
Sascha - 21.05.2011
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"^^
Re: is their a way -
CrazyBlob - 21.05.2011
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