Black Screen On player connect and spawn problem.[Reward:REP+]
#1

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.

Reply
#2

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]);
Reply
#3

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

PS:Using Jewel's Admin system
Reply
#4

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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)