Show TextDraw after log-in
#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


Messages In This Thread
Show TextDraw after log-in - by deniel95 - 08.08.2011, 00:06
Re: Show TextDraw after log-in - by Kush - 08.08.2011, 00:09
Re: Show TextDraw after log-in - by deniel95 - 08.08.2011, 00:25
Re : Show TextDraw after log-in - by Soumi - 08.08.2011, 00:32
Re: Show TextDraw after log-in - by deniel95 - 08.08.2011, 03:21

Forum Jump:


Users browsing this thread: 1 Guest(s)