20.12.2009, 22:41
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.
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.
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;
}