20.01.2016, 05:45
hi please tell me how can i add my server website on the bottom left of my server
and also how to add my server name on top right
and also how to add my server name on top right
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;
}
Change with Your Server and Website Name !
PHP код:
|