onconnect help - 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: onconnect help (
/showthread.php?tid=614241)
onconnect help -
JuzDoiT - 06.08.2016
hello how can i hide that dialog .. for 6seconds .. ?? and show again
http://i.imgur.com/Izjtmaa.png
Re: onconnect help -
Sjn - 06.08.2016
SetTimerEx
TextDrawShowForPlayer
Edit: Oh you mean those arrows, move those textdraws in the OnPlayerConnect callback and not inside OnPlayerRequestClass.
Re: onconnect help -
Logic_ - 06.08.2016
Replace the 'comments' with the textdraw hide and show codes respectively.
PHP код:
public OnPlayerConnect(playerid)
{
// show the textdraw
TogglePlayerSpectating(playerid, true);
PlayerSpectatePlayer(playerid, playerid);
SetTimerEx("show", 6000, false, "i", playerid);
return 1;
}
forward show(playerid);
public show(playerid)
{
// hide the textdraw
TogglePlayerSpectating(playerid, false);
return 1;
}
Re: onconnect help -
Shinja - 06.08.2016
Quote:
Originally Posted by ALiScripter
Replace the 'comments' with the textdraw hide and show codes respectively.
PHP код:
public OnPlayerConnect(playerid)
{
// show the textdraw
TogglePlayerSpectating(playerid, true);
PlayerSpectatePlayer(playerid, playerid);
SetTimerEx("show", 6000, false, "i", playerid);
return 1;
}
forward show(playerid);
public show(playerid)
{
// hide the textdraw
TogglePlayerSpectating(playerid, false);
return 1;
}
|
Question: TogglePlayerSpectating true onplayerconnect will prevent from going to next callback OnPlayerRequestClass?
Re: onconnect help -
Logic_ - 06.08.2016
Quote:
Originally Posted by Shinja
Question: TogglePlayerSpectating true onplayerconnect will prevent from going to next callback OnPlayerRequestClass?
|
Ofcourse.