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