Black Backround - OnPlayerConnect
#1

I want a completely 100% black backround on OnPlayerConnect, how is this done?

Thanks.
Reply
#2

With Textdraws.
Create a black textdraw over the whole screen, show it on OnPlayerConnect, and hide it on OnPlayerSpawn.
Reply
#3

Has anyone got this text draw for me? I don't have the time to download a text draw editor.
Reply
#4

You need to create the 'BlackScreen' variable, but this set-up here will make it a black screen.

pawn Код:
BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
PlayerTextDrawFont(playerid, BlackScreen[playerid], 1);
PlayerTextDrawLetterSize(playerid, BlackScreen[playerid], 0.0, 50.0);
PlayerTextDrawUseBox(playerid, BlackScreen[playerid], true);
PlayerTextDrawBoxColor(playerid, BlackScreen[playerid], 0x000000FF);
Reply
#5

Quote:
Originally Posted by Bicentric
Посмотреть сообщение
You need to create the 'BlackScreen' variable, but this set-up here will make it a black screen.

BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
PlayerTextDrawFont(playerid, BlackScreen[playerid], 1);
PlayerTextDrawLetterSize(playerid, BlackScreen[playerid], 0.0, 50.0);
PlayerTextDrawUseBox(playerid, BlackScreen[playerid], true);
PlayerTextDrawBoxColor(playerid, BlackScreen[playerid], 0x000000FF);[/pawn]
Thanks, but i got 4 errors when attempting that.

pawn Код:
error 028: invalid subscript (not an array or too many subscripts): "BlackScreen"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
This is the line:
pawn Код:
BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
Reply
#6

new Text:BlackScreen[MAX_PLAYERS];
Reply
#7

Why do you even need that MAX_PLAYERS shizzle? It's a static textdraw that doesn't change. Why waste 499 textdraws?
Reply
#8

I added MAX_PLAYERS and that seemed to lessen the problems, now i only receive 5 warnings, such as the following.

pawn Код:
warning 213: tag mismatch
(1633) : warning 213: tag mismatch
(1634) : warning 213: tag mismatch
(1635) : warning 213: tag mismatch
(1636) : warning 213: tag mismatch
For all of these lines:
pawn Код:
BlackScreen[playerid] = CreatePlayerTextDraw(playerid, 0.0, 0.0, "_");
    PlayerTextDrawFont(playerid, BlackScreen[playerid], 1);
    PlayerTextDrawLetterSize(playerid, BlackScreen[playerid], 0.0, 50.0);
    PlayerTextDrawUseBox(playerid, BlackScreen[playerid], true);
    PlayerTextDrawBoxColor(playerid, BlackScreen[playerid], 0x000000FF);
Reply
#9

And also use a timer that sends every 10ms(or change it) an empty message. It looks awful with the text on it.
Reply
#10

I would.. but the current system is not working.

I'm getting 4 warnings. How do i solve them?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)