SA-MP Forums Archive
SetTimer OnPlayerConnect - 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: SetTimer OnPlayerConnect (/showthread.php?tid=162644)



SetTimer OnPlayerConnect - [L3th4l] - 24.07.2010

K, so i have some textdraws, and i want the players to be able to at least read the 2 lines of rules i have when the playerconnects.

So, when he connects, it sets a timer for like 5-6 seconds,after the timer stops, it hides the textdraws. THEN it loads the server info for him.

Will be greatly appreciated, thanx.


Re: SetTimer OnPlayerConnect - Jeffry - 24.07.2010

At OnPlayerConnect:

pawn Код:
//Show the Textdraws....
SetTimerEx("HideMyTD", 5000, 0, "d", playerid);
Anywhere:

pawn Код:
forward HideMyTD(playerid);
public HideMyTD(playerid)
{
  //Hide your textdraws....
  return 1;
}
I hope this helps you.

Cheers!