SA-MP Forums Archive
Website URL in game help? - 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: Website URL in game help? (/showthread.php?tid=285023)



Website URL in game help? - Trucker[UK] - 21.09.2011

Hello

Can someone please help with website
e.g. I have seen it on some servers with there website URL at the top right hand corner of the screen can anyone tell me were to get one from

Thanks


Re: Website URL in game help? - ikkentim - 21.09.2011

samp://12.34.56:7777
Is that what you mean?


Re: Website URL in game help? - Trucker[UK] - 21.09.2011

No actually in the SA-MP game for your own server


Re: Website URL in game help? - Basicz - 21.09.2011

pawn Код:
new Text: webURL;
...
TEXTDRAWS!!!

Use Zamaroht's textdraw editor to create it.


Re: Website URL in game help? - grand.Theft.Otto - 21.09.2011

https://sampforum.blast.hk/showthread.php?tid=117851


Re: Website URL in game help? - Fat - 22.09.2011

pawn Код:
//On top of your script
new Text:forum;


// Under OnGameModeInIt
for(new i=0;i<MAX_PLAYERS;i++)
{
    forum = TextDrawCreate( 1.000000,433.000000, "URL here" );
    TextDrawAlignment( forum, 0 );
    TextDrawBackgroundColor( forum, 0x000000ff );
    TextDrawFont( forum, 2 );
    TextDrawLetterSize( forum, 0.499999,1.100000 );
    TextDrawColor( forum, 0xffffffff );
    TextDrawSetOutline( forum, 1 );
    TextDrawSetProportional( forum, 1 );
    TextDrawSetShadow( forum, 1 );
}

//Under OnPlayerConnect
TextDrawShowForPlayer(playerid, forum);