The GameTextForPlayer shows too far? - 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: The GameTextForPlayer shows too far? (
/showthread.php?tid=193556)
The GameTextForPlayer shows too far? -
Spiral - 26.11.2010
Hey folks,
So I tried to make a place where it shows a text like you can enter by.. and then it shows too far! How can I make it do so that it only shows it when im ONLY in the place where it should show it. Here's the code!
pawn Код:
else if(PlayerToPoint(20, i,810.1588,-2367.4871,4.6415))
{//Prison bank marker
GameTextForPlayer(i, "~r~use /enter to go ~n~into the bank room", 5000, 1);
/*SetPlayerInterior(i, 0);
PlayerInfo[i][pInt] = 0;
SetPlayerPos(i,1022.599975,-1123.699951,23.799999);*/
}
How can I change it? Thank you.
Re: The GameTextForPlayer shows too far? -
Kitten - 26.11.2010
pawn Код:
GameTextForPlayer(i, "~r~use /enter to go ~n~into the bank room", 2000, 1); // its gonna stay up for 5 second so u want shorter try 2000
Re: The GameTextForPlayer shows too far? -
Spiral - 26.11.2010
Did not work, and made it even bigger lol.
Re: The GameTextForPlayer shows too far? -
Kitten - 26.11.2010
What do u mean bigger a picture would be good
try
pawn Код:
GameTextForPlayer(i, "~r~use /enter to go ~n~into the bank room", 2000, 4);
Re: The GameTextForPlayer shows too far? -
Spiral - 26.11.2010
I mean, I have mapped a map and when I spawn i got the text, but the place itself is like half way of the whole map size from me. So the text range is too high. And I need to lower it, but how?
Re: The GameTextForPlayer shows too far? -
Mehtab - 26.11.2010
set timer dude
Re: The GameTextForPlayer shows too far? -
TheXIII - 26.11.2010
Lower the
first parameter of IsPlayerInRangeOfPoint, which is
20, in your case right now. Lower it to about 5.
Re: The GameTextForPlayer shows too far? -
Spiral - 26.11.2010
TheXII You just made it, and i made the gametext... to sendclientmessage and it kept spamming it, so yeah its in the PLayerToPoint shit, checking.
//EDIT It worked and I got it, now its working just as it should, thank you!