GameTextForAll question
#6

Quote:
Originally Posted by andrei23_yoo
Посмотреть сообщение
well at the beginning I didn't knew that textdraws will last forever on the screen, but finally managed to make it
This is what i came up with and thanks alot for helping me
Код:
new Text:forum

public OnGameModeInit()
{
forum = TextDrawCreate(13.0,430.0,"www.******.net");
TextDrawAlignment(forum,0);
TextDrawFont(forum,1);
TextDrawLetterSize(forum,0.4,1.1);
TextDrawSetOutline(forum,1);
TextDrawColor(forum,0x00BBFFFF);
TextDrawSetProportional(forum,1);
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, forum);
return 1;
}
lol here:
pawn Код:
public OnGameModeInit()
{
forum = TextDrawCreate(13.0,430.0,"www.******.net");
TextDrawAlignment(forum,0);
TextDrawFont(forum,1);
TextDrawLetterSize(forum,0.4,1.1);
TextDrawSetOutline(forum,1);
TextDrawColor(forum,0x00BBFFFF);
TextDrawSetProportional(forum,1);
//you forgot this
    for(new i; i < MAX_PLAYERS; i ++) {
        if(IsPlayerConnected(i)) {
            TextDrawShowForPlayer(i, forum);
        }
    }
return 1;
}

public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, forum);
return 1;
}
Reply


Messages In This Thread
GameTextForAll question - by andrei23_yoo - 06.09.2011, 13:43
Re: GameTextForAll question - by Kaperstone - 06.09.2011, 13:51
Re: GameTextForAll question - by andrei23_yoo - 06.09.2011, 14:43
Re: GameTextForAll question - by Kingunit - 06.09.2011, 14:44
Re: GameTextForAll question - by andrei23_yoo - 06.09.2011, 15:27
Re: GameTextForAll question - by Kaperstone - 06.09.2011, 15:33
Re: GameTextForAll question - by andrei23_yoo - 06.09.2011, 15:39
Re: GameTextForAll question - by Kaperstone - 06.09.2011, 15:40
Re: GameTextForAll question - by _Aleksandar - 06.09.2011, 16:06

Forum Jump:


Users browsing this thread: 3 Guest(s)