06.09.2011, 15:33
Quote:
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; } |

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;
}