#1

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

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.
Reply
#3

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.
Reply
#4

At top of gamemode
Код:
new Text:Textdraw3;
Код:
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);
Reply
#5

Quote:
Originally Posted by Mr_FinnigaN
At top of gamemode
Код:
new Text:Textdraw3;
Код:
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);
Reply
#6

Quote:
Originally Posted by saiberfun
Quote:
Originally Posted by Mr_FinnigaN
At top of gamemode
Код:
new Text:Textdraw3;
Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)