Quote:
Originally Posted by Amunra
Change with Your Server and Website Name !
PHP код:
new Text:Website;
new Text:ServerName;
public OnGameModeInit()
{
Website = TextDrawCreate(5.0, 431.0, "website server");//Change With your website Name
TextDrawUseBox(Website, false);
ServerName = TextDrawCreate(499.000000, 96.000000, "Server Name");//Change With Your Server Name
TextDrawBackgroundColor(ServerName, 255);
TextDrawFont(ServerName, 0);
TextDrawLetterSize(ServerName, 0.559999, 1.600000);
TextDrawColor(ServerName, 225);
TextDrawSetOutline(ServerName, 1);
TextDrawSetProportional(ServerName, 1);
TextDrawSetShadow(ServerName, 1);
//You can change the style of textdraw
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid,Website);//For show server name
TextDrawShowForPlayer(playerid,ServerName);//for show Server name
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
TextDrawHideForPlayer(playerid,Website);//for Hide Website Name
TextDrawHideForPlayer(playerid,ServerName);//For Hide Server NAME
return 1;
}
Any help ?
|
i need to add this whole text together or like some in oncennect part some part anywhere else??