Show TextDraw after log-in
#1

Hi,how to set my TextDraw to show AFTER LogIN?



tY!
Reply
#2

More info please.
Reply
#3

So,i have TextDraw,and when ni enter the game,befor ei login its show , i want to be after i logi in!
(after i enter PW in Dialog and spawn)
Reply
#4

pawn Код:
//At the top of the script
new Text: LoginText;

//Under OnGamemodeInit


LoginText = TextDrawCreate(1.000000,433.000000,"Your spawned Yay!");
    TextDrawAlignment(LoginText, 0);
    TextDrawBackgroundColor(LoginText, 0x000000ff);
    TextDrawFont(LoginText, 2);
    TextDrawLetterSize(LoginText, 0.499999,1.100000);
    TextDrawColor(ServerNameTextDraw, 0xffffffff);
    TextDrawSetOutline(LoginText, 1);
    TextDrawSetProportional(LoginText, 1);
    TextDrawSetShadow(LoginText, 1);
        //This is just an example you can edit those lines like u want.

//and finally
public OnPlayerSpawn(playerid)
{
        //We'll check if the player is logged in.
    if(Player[playerid][Logged] == 1) //you can change this variable to the one you have in your gamemode.
    {
        TextDrawShowForPlayer(playerid, LoginText); //This will show the Textdraw to the player
    }
    return 1;
}
This would help.
Reply
#5

WORK. . . TY! - LOCK!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)