Logo? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Logo? (
/showthread.php?tid=89732)
Logo? -
DeltaAirlines12 - 03.08.2009
Ok, Is There A Way I Can Put My Website Domain In The Bottom Right Corner Of My SAMP Server?
And Have It There The Whole Time?
Re: Logo? -
V_FoR_VendettA - 03.08.2009
Yes,
i would use TextDraw. Check SA-MP wiki.
there are some functions for making a textdraw.
TextDrawFont, TextDrawAlignment, TextDrawSetOutline, ...
Just enter TextDrawCreate at the search box in sa-mp wiki, the other functions will stand at Related Functions.
https://sampwiki.blast.hk/wiki/TextDrawCreate
Make a textdraw, then put at OnPlayerConnect (or OnPlayerSpawn):
TextDrawShowForPlayer(playerid, Text:MyTextDraw);
and your website will remain there the whole time.
Re: Logo? -
DeltaAirlines12 - 03.08.2009
Quote:
Originally Posted by V_FoR_VendettA
Yes,
i would use TextDraw. Check SA-MP wiki.
there are some functions for making a textdraw.
TextDrawFont, TextDrawAlignment, TextDrawSetOutline, ...
Just enter TextDrawCreate at the search box in sa-mp wiki, the other functions will stand at Related Functions.
https://sampwiki.blast.hk/wiki/TextDrawCreate
Make a textdraw, then put at OnPlayerConnect (or OnPlayerSpawn):
TextDrawShowForPlayer(playerid, Text:MyTextDraw);
and your website will remain there the whole time.
|
Thanks.
Re: Logo? -
Mr_Finnigan - 03.08.2009
At top of gamemode
Код:
public OnGameModeInit()
Код:
Textdraw3 = TextDrawCreate(170.000000,417.000000,"YOUR WEBSITE STUFF HERE");
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(Textdraw3,0xFFFF00AA); // change the 0xFFFF00AA to whatever color
TextDrawFont(Textdraw3,3);
TextDrawLetterSize(Textdraw3,0.499999,1.700000);
TextDrawColor(Textdraw3,0xAA3333AA); // change the 0xAA3333AA to whatever color
TextDrawSetProportional(Textdraw3,1);
Re: Logo? -
saiberfun - 03.08.2009
Quote:
Originally Posted by Mr_FinnigaN
At top of gamemode
Код:
public OnGameModeInit()
Код:
Textdraw3 = TextDrawCreate(170.000000,417.000000,"YOUR WEBSITE STUFF HERE");
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(Textdraw3,0xFFFF00AA);
TextDrawFont(Textdraw3,3);
TextDrawLetterSize(Textdraw3,0.499999,1.700000);
TextDrawColor(Textdraw3,0xAA3333AA);
TextDrawSetProportional(Textdraw3,1);
|
Dom't forget to add on OnPlayerConnect(playerid)
pawn Код:
ShowTextDrawForPlayer(playerid,Textdraw3);
and OnPlayerDisconnect(playerid,reason)
pawn Код:
HideTextDrawForPlayer(playerid,Textdraw3);
Re: Logo? -
Mr_Finnigan - 03.08.2009
Quote:
Originally Posted by saiberfun
Quote:
Originally Posted by Mr_FinnigaN
At top of gamemode
Код:
public OnGameModeInit()
Код:
Textdraw3 = TextDrawCreate(170.000000,417.000000,"YOUR WEBSITE STUFF HERE");
TextDrawAlignment(Textdraw3,0);
TextDrawBackgroundColor(Textdraw3,0xFFFF00AA);
TextDrawFont(Textdraw3,3);
TextDrawLetterSize(Textdraw3,0.499999,1.700000);
TextDrawColor(Textdraw3,0xAA3333AA);
TextDrawSetProportional(Textdraw3,1);
|
Dom't forget to add on OnPlayerConnect(playerid)
pawn Код:
ShowTextDrawForPlayer(playerid,Textdraw3);
and OnPlayerDisconnect(playerid,reason)
pawn Код:
HideTextDrawForPlayer(playerid,Textdraw3);
|
Yes,sorry,forgot that important part or it wouldn't work