small problem - 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: small problem (
/showthread.php?tid=503121)
small problem -
Dylancoolblue - 27.03.2014
After i login a class selection comes up but i want my textdraws to disspier straight after the player logs in so how can i do that?
Re: small problem -
MattTucker - 27.03.2014
EDIT:nvm.
Re: small problem -
Dylancoolblue - 27.03.2014
I allready got stuff for the textdraws under onplayerconnect but the textdraw does not dissapier when im picking a skin
Re: small problem -
MattTucker - 27.03.2014
I am not really that good with textdraws (never tried scripting them) but perhaps set like a timer to destroy them?
Re: small problem -
[..MonTaNa..] - 27.03.2014
You could make something like this:
pawn Код:
forward HideTextDraws(playerid);
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, yourtextdraw);
TextDrawShowForPlayer(playerid, yourtextdraw2);
SetTimerEx("HideTextDraws", 5000, false, "i", playerid);
return 1;
}
public HideTextDraws(playerid)
{
TextDrawHideForPlayer(playerid, yourtextdraw);
TextDrawHideForPlayer(playerid, yourtextdraw2);
}