08.08.2011, 00:06
Hi,how to set my TextDraw to show AFTER LogIN?
tY!
tY!
//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;
}