05.08.2012, 22:28
As, you can see the text is behind of Box.
Here is the script:
This is under OnGameModeInit
Код:
TDV_Hitman[0] = TextDrawCreate(100.000000, 137.000000, "~g~hitman"); TextDrawBackgroundColor(TDV_Hitman[0], 255); TextDrawFont(TDV_Hitman[0], 3); TextDrawLetterSize(TDV_Hitman[0], 0.470000, 0.899999); TextDrawColor(TDV_Hitman[0], -1); TextDrawSetOutline(TDV_Hitman[0], 1); TextDrawSetProportional(TDV_Hitman[0], 1); TDV_Hitman[1] = TextDrawCreate(133.000000, 160.000000, "Complete Hit Contracts For Money~n~~n~~y~/hits ~w~- List Current Hit Contracts~n~~y~/loc [nick/id] ~w~- Display Player Location Information"); TextDrawAlignment(TDV_Hitman[1], 2); TextDrawBackgroundColor(TDV_Hitman[1], 255); TextDrawFont(TDV_Hitman[1], 1); TextDrawLetterSize(TDV_Hitman[1], 0.270000, 0.899999); TextDrawColor(TDV_Hitman[1], -1); TextDrawSetOutline(TDV_Hitman[1], 1); TextDrawSetProportional(TDV_Hitman[1], 1); TDV_Hitman[2] = TextDrawCreate(267.000000, 126.000000, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~"); TextDrawBackgroundColor(TDV_Hitman[2], 255); TextDrawFont(TDV_Hitman[2], 1); TextDrawLetterSize(TDV_Hitman[2], 0.500000, 1.000000); TextDrawColor(TDV_Hitman[2], -1); TextDrawSetOutline(TDV_Hitman[2], 0); TextDrawSetProportional(TDV_Hitman[2], 1); TextDrawSetShadow(TDV_Hitman[2], 1); TextDrawUseBox(TDV_Hitman[2], 1); TextDrawBoxColor(TDV_Hitman[2], 119); TextDrawTextSize(TDV_Hitman[2], 2.000000, 0.000000);
Код:
TextDrawShowForPlayer(playerid, TDV_Hitman[2]); TextDrawShowForPlayer(playerid, TDV_Hitman[0]); TextDrawShowForPlayer(playerid, TDV_Hitman[1]);