07.04.2011, 08:31
Top of your Script
OnGameModeInit
OnPlayerConnect
And then somewhere else put this or on top.
And this function.
I did not tested.
pawn Код:
new Text:Join;
OnGameModeInit
pawn Код:
new pName[MAX_PLAYER_NAME];
new string[128];
Join = TextDrawCreate(5.000000,255.000000, string);
format(string, sizeof(string), "%s has joined the server",pName);
TextDrawUseBox(Join,1);
TextDrawBoxColor(Join,0x00000099);
TextDrawTextSize(Join,191.000000,1.000000);
TextDrawAlignment(Join,0);
TextDrawBackgroundColor(Join,0x000000ff);
TextDrawFont(Join,3);
TextDrawLetterSize(Join,0.299999,1.200000);
TextDrawColor(Join,0xffffffff);
TextDrawSetOutline(Join,1);
TextDrawSetProportional(Join,1);
TextDrawSetShadow(Join,1);
pawn Код:
TextDrawShowForAll(Join);
SetTimer("TextDrawHide",4000,true);
pawn Код:
forward TextDrawHide();
pawn Код:
public TextDrawHide()
{
TextDrawHideForAll(Join);
return 1;
}