help adding things
#1

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
Reply
#2

Change with Your Server and Website Name !
PHP код:
new Text:Website;
new 
Text:ServerName;
public 
OnGameModeInit()
{
    
Website TextDrawCreate(5.0431.0"website server");//Change With your website Name
    
TextDrawUseBox(Websitefalse);
    
ServerName TextDrawCreate(499.00000096.000000"Server Name");//Change With Your Server Name
    
TextDrawBackgroundColor(ServerName255);
    
TextDrawFont(ServerName0);
    
TextDrawLetterSize(ServerName0.5599991.600000);
    
TextDrawColor(ServerName225);
    
TextDrawSetOutline(ServerName1);
    
TextDrawSetProportional(ServerName1);
    
TextDrawSetShadow(ServerName1);
    
//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(playeridreason)
{
    
TextDrawHideForPlayer(playerid,Website);//for Hide Website Name
    
TextDrawHideForPlayer(playerid,ServerName);//For Hide Server NAME
    
return 1;

Any help ?
Reply
#3

https://sampwiki.blast.hk/wiki/TextDrawCreate

Are you talking about that?

EDIT: See Amunra's reply.
Reply
#4

Quote:
Originally Posted by Amunra
Посмотреть сообщение
Change with Your Server and Website Name !
PHP код:
new Text:Website;
new 
Text:ServerName;
public 
OnGameModeInit()
{
    
Website TextDrawCreate(5.0431.0"website server");//Change With your website Name
    
TextDrawUseBox(Websitefalse);
    
ServerName TextDrawCreate(499.00000096.000000"Server Name");//Change With Your Server Name
    
TextDrawBackgroundColor(ServerName255);
    
TextDrawFont(ServerName0);
    
TextDrawLetterSize(ServerName0.5599991.600000);
    
TextDrawColor(ServerName225);
    
TextDrawSetOutline(ServerName1);
    
TextDrawSetProportional(ServerName1);
    
TextDrawSetShadow(ServerName1);
    
//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(playeridreason)
{
    
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??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)