Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new bool: PlayerBlind[MAX_PLAYERS];
- new Text: TD_FullBlackDisplay;
- // OnPlayerConnect
- PlayerBlind[playerid] = false;
- // OnGameModeInit
- TD_FullBlackDisplay = TextDrawCreate(-2.000000, -7.000000, "box");
- TextDrawLetterSize(TD_FullBlackDisplay, 0.000000, 53.935569);
- TextDrawTextSize(TD_FullBlackDisplay, 638.000000, 0.000000);
- TextDrawAlignment(TD_FullBlackDisplay, 1);
- TextDrawColor(TD_FullBlackDisplay, -1);
- TextDrawUseBox(TD_FullBlackDisplay, 1);
- TextDrawBoxColor(TD_FullBlackDisplay, 255);
- TextDrawSetShadow(TD_FullBlackDisplay, 0);
- TextDrawSetOutline(TD_FullBlackDisplay, 0);
- TextDrawBackgroundColor(TD_FullBlackDisplay, 255);
- TextDrawFont(TD_FullBlackDisplay, 1);
- TextDrawSetProportional(TD_FullBlackDisplay, 1);
- TextDrawSetShadow(TD_FullBlackDisplay, 0);
- CMD:blind(playerid)
- {
- PlayerBlind[playerid] = !PlayerBlind[playerid];
- if(PlayerBlind[playerid]) TextDrawShowForPlayer(playerid, TD_FullBlackDisplay);
- else TextDrawHideForPlayer(playerid, TD_FullBlackDisplay);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement