SA-MP Forums Archive
help adding things - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help adding things (/showthread.php?tid=599042)



help adding things - LifeRah - 20.01.2016

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


Re: help adding things - Amunra - 20.01.2016

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 ?


Re: help adding things - FreAkeD - 20.01.2016

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

Are you talking about that?

EDIT: See Amunra's reply.


Re: help adding things - LifeRah - 20.01.2016

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??