First show the textdraw for 5 secs, then run normally - 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)
+--- Thread: First show the textdraw for 5 secs, then run normally (
/showthread.php?tid=430911)
First show the textdraw for 5 secs, then run normally -
Face9000 - 15.04.2013
Im wondering if there is a way, when a player connect, to show these textdraws:
pawn Код:
TextDrawShowForPlayer(playerid, BuildTxdd);
TextDrawShowForPlayer(playerid, WelcomeTxdd);
TextDrawShowForPlayer(playerid, SrvRulesTxd);
TextDrawShowForPlayer(playerid, CmdsTxdd);
TextDrawShowForPlayer(playerid, RepCheatTxdd);
TextDrawShowForPlayer(playerid, DontShoutTxd);
TextDrawShowForPlayer(playerid, PlayFairTxd);
For 5 seconds, then let run all normal callbacks. Tried with a timer but hasn't worked.
Re: First show the textdraw for 5 secs, then run normally -
DaRk_RaiN - 15.04.2013
You can do that using TogglePlayerSpectating, which will stop the camera at the connection pos till you set it back to 0.
Something like this:
pawn Код:
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, BuildTxdd);
TextDrawShowForPlayer(playerid, WelcomeTxdd);
TextDrawShowForPlayer(playerid, SrvRulesTxd);
TextDrawShowForPlayer(playerid, CmdsTxdd);
TextDrawShowForPlayer(playerid, RepCheatTxdd);
TextDrawShowForPlayer(playerid, DontShoutTxd);
TextDrawShowForPlayer(playerid, PlayFairTxd);
TogglePlayerSpectating(playerid, 1);
SetTimerEx("Timer",5000,0,"i",playerid);
return 1;
}
pawn Код:
forward Timer(playerid);
public Timer(playerid)
{
TogglePlayerSpectating(playerid, 0);
TextDrawHideForPlayer(playerid, BuildTxdd);
TextDrawHideForPlayer(playerid, WelcomeTxdd);
TextDrawHideForPlayer(playerid, SrvRulesTxd);
TextDrawHideForPlayer(playerid, CmdsTxdd);
TextDrawHideForPlayer(playerid, RepCheatTxdd);
TextDrawHideForPlayer(playerid, DontShoutTxd);
TextDrawHideForPlayer(playerid, PlayFairTxd);
}
Re: First show the textdraw for 5 secs, then run normally -
Face9000 - 15.04.2013
Thank you