Server Spawn Layout - 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: Server Spawn Layout (
/showthread.php?tid=115781)
Server Spawn Layout -
Nameless303 - 25.12.2009
Hi (=
I saw a server (208.43.133.131:8700) and when you where at the class selection you had like 2 black "boxes" (idk the right word in english) on the top of the screen and on the botom.. A bit like this;
###################
###################
O
/\
/\
###################
#######< > Spawn ####
I tried it with textdraws but it didn't worked out well xd
Thanks
Re: Server Spawn Layout -
s0nic - 25.12.2009
Fix indentation if needed.
Should be what your looking for.
Credits to whoever made it..think it was from a movie server script.
pawn Код:
//Top
new Text:lbt,Text:lbb;
//OnGameModeInit or OnFilterScriptInit
lbt = TextDrawCreate(-1.000000,2.000000,"---");
TextDrawUseBox(lbt,1);
TextDrawBoxColor(lbt,0x000000ff);
TextDrawTextSize(lbt,640.000000,-69.000000);
TextDrawAlignment(lbt,0);
TextDrawBackgroundColor(lbt,0x000000ff);
TextDrawColor(lbt,0x000000ff);
TextDrawFont(lbt,3);
TextDrawLetterSize(lbt,1.000000,12.199999);
TextDrawSetOutline(lbt,1);
TextDrawSetProportional(lbt,1);
TextDrawSetShadow(lbt,1);
lbb = TextDrawCreate(0.000000,337.000000,"---");
TextDrawUseBox(lbb,1);
TextDrawBoxColor(lbb,0x000000ff);
TextDrawTextSize(lbb,638.000000,-60.000000);
TextDrawAlignment(lbb,0);
TextDrawBackgroundColor(lbb,0x000000ff);
TextDrawFont(lbb,3);
TextDrawLetterSize(lbb,0.899999,15.000000);
TextDrawColor(lbb,0x000000ff);
TextDrawSetOutline(lbb,1);
TextDrawSetProportional(lbb,1);
TextDrawSetShadow(lbb,1);
//OnPlayerConnect
TextDrawShowForPlayer(playerid,lbt);
TextDrawShowForPlayer(playerid,lbb);
//OnPlayerSpawn,after they login or where ever you want to hide it.
TextDrawHideForPlayer(playerid, lbt);
TextDrawHideForPlayer(playerid, lbb);
Re: Server Spawn Layout -
Nameless303 - 25.12.2009
Quote:
Originally Posted by Killaz/s0nic
Fix indentation if needed.
Should be what your looking for.
Credits to whoever made it..think it was from a movie server script.
pawn Код:
//Top new Text:lbt,Text:lbb; //OnGameModeInit or OnFilterScriptInit lbt = TextDrawCreate(-1.000000,2.000000,"---"); TextDrawUseBox(lbt,1); TextDrawBoxColor(lbt,0x000000ff); TextDrawTextSize(lbt,640.000000,-69.000000); TextDrawAlignment(lbt,0); TextDrawBackgroundColor(lbt,0x000000ff); TextDrawColor(lbt,0x000000ff); TextDrawFont(lbt,3); TextDrawLetterSize(lbt,1.000000,12.199999); TextDrawSetOutline(lbt,1); TextDrawSetProportional(lbt,1); TextDrawSetShadow(lbt,1); lbb = TextDrawCreate(0.000000,337.000000,"---"); TextDrawUseBox(lbb,1); TextDrawBoxColor(lbb,0x000000ff); TextDrawTextSize(lbb,638.000000,-60.000000); TextDrawAlignment(lbb,0); TextDrawBackgroundColor(lbb,0x000000ff); TextDrawFont(lbb,3); TextDrawLetterSize(lbb,0.899999,15.000000); TextDrawColor(lbb,0x000000ff); TextDrawSetOutline(lbb,1); TextDrawSetProportional(lbb,1); TextDrawSetShadow(lbb,1);
//OnPlayerConnect TextDrawShowForPlayer(playerid,lbt); TextDrawShowForPlayer(playerid,lbb);
//OnPlayerSpawn,after they login or where ever you want to hide it. TextDrawHideForPlayer(playerid, lbt); TextDrawHideForPlayer(playerid, lbb);
|
Thanks, exactly what I was looking for (:
Re: Server Spawn Layout -
s0nic - 25.12.2009
No problem, glad to help.