[HELP] This is weird? - 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: [HELP] This is weird? (
/showthread.php?tid=114813)
[HELP] This is weird? -
AcId n RaPiD - 20.12.2009
I'm using gPlayerLogged from an RP script (not the GF one). Now I made a timer that activates TextDraws once a player is not logged in, then it deactivates the TextDraws when the player logs on. Here's the code.
pawn Код:
public LoginTextDraw()
{
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(gPlayerLogged[i] == 0)
{
TextDrawShowForPlayer(i, Textdraw0);
TextDrawShowForPlayer(i, Textdraw1);
TextDrawShowForPlayer(i, Textdraw2);
TextDrawShowForPlayer(i, Textdraw3);
}
if(gPlayerLogged[i] == 1)
{
TextDrawHideForPlayer(i, Textdraw0);
TextDrawHideForPlayer(i, Textdraw1);
TextDrawHideForPlayer(i, Textdraw2);
TextDrawHideForPlayer(i, Textdraw3);
}
}
return 1;
}
Now, the TextDraw activates all normally on log on but when I login the server it does not hide the TextDraws. I been working on trying to fix this for half an hour and I can't find NOTHING that helps. If you know what to do please reply, thanks.
Re: [HELP] This is weird? -
Im_BanK - 20.12.2009
try to put this on:
pawn Код:
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
at the bottom of
and this
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
to
or
try
Re: [HELP] This is weird? -
Marcel - 20.12.2009
Just hide the textdraws in your login command?
Re: [HELP] This is weird? -
AcId n RaPiD - 20.12.2009
Okay thanks Im_BanK , worked.