[HELP] Help ASAP if u can plz
#1

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
Reply
#2

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.
Reply
#3

i have textdraws already i just want them to go away when player logs in
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)