SA-MP Forums Archive
Black Screen On player connect and spawn problem.[Reward:REP+] - 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: Black Screen On player connect and spawn problem.[Reward:REP+] (/showthread.php?tid=538043)



Black Screen On player connect and spawn problem.[Reward:REP+] - SWGamer - 19.09.2014

Description:
1. I need a Black Screen on player Connect.And fades away on player spawn.Text draw or something like that.Please explain a little bit.And give a Sample code.

2. If player clicks spawn button without selecting next class or previous class set him to this class
Код:
294, 511.5648, -1779.7948, 5.7173, 192.0618, 5, 0, 22, 100, 32, 50
Reputation+ will be given to anyone who helps me about this topic.




Re: Black Screen On player connect and spawn problem.[Reward:REP+] - TLN - 19.09.2014

pawn Код:
new PlayerText:BlackScreen[MAX_PLAYERS];
OnPlayerConnect
pawn Код:
PlayerTextDrawShow(playerid, BlackScreen[playerid]);

BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 711.375000, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, BlackScreen[playerid], 0.000000, 50.646297);
PlayerTextDrawTextSize(playerid, BlackScreen[playerid], -12.000000, 0.000000);
PlayerTextDrawAlignment(playerid, BlackScreen[playerid], 1);
PlayerTextDrawColor(playerid, BlackScreen[playerid], 0);
PlayerTextDrawUseBox(playerid, BlackScreen[playerid], true);
PlayerTextDrawBoxColor(playerid, BlackScreen[playerid], 255);
PlayerTextDrawSetShadow(playerid, BlackScreen[playerid], 0);
PlayerTextDrawSetOutline(playerid, BlackScreen[playerid], 0);
PlayerTextDrawFont(playerid, BlackScreen[playerid], 0);
OnPlayerSpawn
pawn Код:
PlayerTextDrawHide(playerid, BlackScreen[playerid]);



Re: Black Screen On player connect and spawn problem.[Reward:REP+] - SWGamer - 19.09.2014

Doesnot work.I mean it compiles without a single error but still doesnot show In Game.

PS:Using Jewel's Admin system


Re: Black Screen On player connect and spawn problem.[Reward:REP+] - Eth - 19.09.2014

edit TLN's one to :
at any place in your gamemode:
pawn Код:
new PlayerText:BlackScreen[MAX_PLAYERS];
onplayerconnect:
pawn Код:
BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 711.375000, 1.500000, "usebox");
PlayerTextDrawLetterSize(playerid, BlackScreen[playerid], 0.000000, 50.646297);
PlayerTextDrawTextSize(playerid, BlackScreen[playerid], -12.000000, 0.000000);
PlayerTextDrawAlignment(playerid, BlackScreen[playerid], 1);
PlayerTextDrawColor(playerid, BlackScreen[playerid], 0);
PlayerTextDrawUseBox(playerid, BlackScreen[playerid], true);
PlayerTextDrawBoxColor(playerid, BlackScreen[playerid], 255);
PlayerTextDrawSetShadow(playerid, BlackScreen[playerid], 0);
PlayerTextDrawSetOutline(playerid, BlackScreen[playerid], 0);
PlayerTextDrawFont(playerid, BlackScreen[playerid], 0);
PlayerTextDrawShow(playerid, BlackScreen[playerid]);
on playerspawn:
pawn Код:
PlayerTextDrawHide(playerid, BlackScreen[playerid]);