[HELP] Help ASAP if u can plz - 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: [HELP] Help ASAP if u can plz (
/showthread.php?tid=538077)
[HELP] Help ASAP if u can plz -
GunZ75 - 19.09.2014
Hi guys i need help:
Idk how to put a textdraw disapearing when a player logs in can someone tell me how? plz i would apreciate ALOT
btw im using DudB for login system
Re : [HELP] Help ASAP if u can plz -
streetpeace - 19.09.2014
Create a stock and put in TextDrawCreate, just like this
pawn Код:
new PlayerTextdraw[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
LoadPlayerTextdraw(playerid);
TextDrawShowForPlayer(playerid, PlayerTextdraw[playerid]);
return 1;
}
stock LoadPlayerTextdraw(playerid)
{
PlayerTextdraw[playerid] = TextDrawCreate(240.0,580.0,"Hello, log in the server");
return 1;
}
Then, put what you want in your textdraw (shadow, box ..)
https://sampwiki.blast.hk/wiki/TextDraw
I hope that I helped you.
Re: [HELP] Help ASAP if u can plz -
GunZ75 - 19.09.2014
i have textdraws already i just want them to go away when player logs in
Re: [HELP] Help ASAP if u can plz -
iSkate - 19.09.2014
If you want to hide it when the player spawns, do this:
pawn Код:
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, YourTextDrawName);
return 1;
}
But if you want to hide it when the player
logs in, then you need to show us your register/login system so we can tell you where you should add the function TextDrawHideForPlayer to hide the textdraw.