02.01.2016, 01:39
Код:
// Bottom Box 1 MainMenuTxtdraw[0] = TextDrawCreate(-1.000000, 342.000000, "BottomBox1"); TextDrawBackgroundColor(MainMenuTxtdraw[0], 0); TextDrawFont(MainMenuTxtdraw[0], 1); TextDrawLetterSize(MainMenuTxtdraw[0], 0.839999, 11.600002); TextDrawColor(MainMenuTxtdraw[0], 0); TextDrawSetOutline(MainMenuTxtdraw[0], 0); TextDrawSetProportional(MainMenuTxtdraw[0], 1); TextDrawSetShadow(MainMenuTxtdraw[0], 1); TextDrawUseBox(MainMenuTxtdraw[0], 1); TextDrawBoxColor(MainMenuTxtdraw[0], 255); TextDrawTextSize(MainMenuTxtdraw[0], 677.000000, 134.000000); textdrawscount++; // Top Box 1 MainMenuTxtdraw[1] = TextDrawCreate(-10.000000, -18.000000, "TopBox1"); TextDrawBackgroundColor(MainMenuTxtdraw[1], 0); TextDrawFont(MainMenuTxtdraw[1], 1); TextDrawLetterSize(MainMenuTxtdraw[1], 0.500000, 13.000000); TextDrawColor(MainMenuTxtdraw[1], 0); TextDrawSetOutline(MainMenuTxtdraw[1], 0); TextDrawSetProportional(MainMenuTxtdraw[1], 1); TextDrawSetShadow(MainMenuTxtdraw[1], 1); TextDrawUseBox(MainMenuTxtdraw[1], 1); TextDrawBoxColor(MainMenuTxtdraw[1], 255); TextDrawTextSize(MainMenuTxtdraw[1], 770.000000, 0.000000); textdrawscount++; // Bottom Box 2 MainMenuTxtdraw[2] = TextDrawCreate(-1.000000, 342.000000, "BottomBox2"); TextDrawBackgroundColor(MainMenuTxtdraw[2], 0); TextDrawFont(MainMenuTxtdraw[2], 1); TextDrawLetterSize(MainMenuTxtdraw[2], 0.839999, -0.799999); TextDrawColor(MainMenuTxtdraw[2], 0); TextDrawSetOutline(MainMenuTxtdraw[2], 0); TextDrawSetProportional(MainMenuTxtdraw[2], 1); TextDrawSetShadow(MainMenuTxtdraw[2], 1); TextDrawUseBox(MainMenuTxtdraw[2], 1); TextDrawBoxColor(MainMenuTxtdraw[2], 6730751); TextDrawTextSize(MainMenuTxtdraw[2], 677.000000, 131.000000); textdrawscount++; // Top Box 1 MainMenuTxtdraw[3] = TextDrawCreate(-10.000000, 102.000000, "TopBox1"); TextDrawBackgroundColor(MainMenuTxtdraw[3], 6730751); TextDrawFont(MainMenuTxtdraw[3], 1); TextDrawLetterSize(MainMenuTxtdraw[3], 0.500000, 0.199999); TextDrawColor(MainMenuTxtdraw[3], 0); TextDrawSetOutline(MainMenuTxtdraw[3], 0); TextDrawSetProportional(MainMenuTxtdraw[3], 1); TextDrawSetShadow(MainMenuTxtdraw[3], 1); TextDrawUseBox(MainMenuTxtdraw[3], 1); TextDrawBoxColor(MainMenuTxtdraw[3], 6730751); TextDrawTextSize(MainMenuTxtdraw[3], 770.000000, 138.000000); textdrawscount++; MainMenuTxtdraw[4] = TextDrawCreate(263.000000, 10.000000, "G-V-N"); TextDrawBackgroundColor(MainMenuTxtdraw[4], 255); TextDrawFont(MainMenuTxtdraw[4], 2); TextDrawLetterSize(MainMenuTxtdraw[4], 0.910000, 4.400001); TextDrawColor(MainMenuTxtdraw[4], -1); TextDrawSetOutline(MainMenuTxtdraw[4], 0); TextDrawSetProportional(MainMenuTxtdraw[4], 1); TextDrawSetShadow(MainMenuTxtdraw[4], 1); textdrawscount++; // NG-RP Subtitle MainMenuTxtdraw[5] = TextDrawCreate(256.000000, 45.000000, "GTA SAN ANDREAS VIET NAM"); TextDrawBackgroundColor(MainMenuTxtdraw[5], 255); TextDrawFont(MainMenuTxtdraw[5], 2); TextDrawLetterSize(MainMenuTxtdraw[5], 0.200000, 1.200001); TextDrawColor(MainMenuTxtdraw[5], -1); TextDrawSetOutline(MainMenuTxtdraw[5], 0); TextDrawSetProportional(MainMenuTxtdraw[5], 1); TextDrawSetShadow(MainMenuTxtdraw[5], 1); textdrawscount++; // NG-RP Version MainMenuTxtdraw[6] = TextDrawCreate(283.000000, 58.000000, SERVER_GM_TEXT); TextDrawBackgroundColor(MainMenuTxtdraw[6], 255); TextDrawFont(MainMenuTxtdraw[6], 2); TextDrawLetterSize(MainMenuTxtdraw[6], 0.200000, 1.200001); TextDrawColor(MainMenuTxtdraw[6], -65281); TextDrawSetOutline(MainMenuTxtdraw[6], 0); TextDrawSetProportional(MainMenuTxtdraw[6], 1); TextDrawSetShadow(MainMenuTxtdraw[6], 1); textdrawscount++;
Код:
new PlayerText:Textdraw0; new PlayerText:Textdraw1; new PlayerText:Textdraw2; new PlayerText:Textdraw3; new PlayerText:Textdraw4; new PlayerText:Textdraw5; new PlayerText:Textdraw6; // In OnPlayerConnect prefferably, we procced to create our textdraws: Textdraw0 = CreatePlayerTextDraw(playerid,462.000000, 0.000000, "New Textdraw"); PlayerTextDrawBackgroundColor(playerid,Textdraw0, 255); PlayerTextDrawFont(playerid,Textdraw0, 5); PlayerTextDrawLetterSize(playerid,Textdraw0, 0.500000, 1.000000); PlayerTextDrawColor(playerid,Textdraw0, -1); PlayerTextDrawSetOutline(playerid,Textdraw0, 0); PlayerTextDrawSetProportional(playerid,Textdraw0, 1); PlayerTextDrawSetShadow(playerid,Textdraw0, 1); PlayerTextDrawUseBox(playerid,Textdraw0, 1); PlayerTextDrawBoxColor(playerid,Textdraw0, 366); PlayerTextDrawTextSize(playerid,Textdraw0, 177.000000, 108.000000); PlayerTextDrawSetPreviewModel(playerid, Textdraw0, 411); PlayerTextDrawSetPreviewRot(playerid, Textdraw0, -16.000000, 0.000000, 290.000000, 1.000000); PlayerTextDrawSetSelectable(playerid,Textdraw0, 0); Textdraw1 = CreatePlayerTextDraw(playerid,-7.000000, -2.000000, "New Textdraw"); PlayerTextDrawBackgroundColor(playerid,Textdraw1, 255); PlayerTextDrawFont(playerid,Textdraw1, 5); PlayerTextDrawLetterSize(playerid,Textdraw1, 0.500000, 1.000000); PlayerTextDrawColor(playerid,Textdraw1, -1); PlayerTextDrawSetOutline(playerid,Textdraw1, 0); PlayerTextDrawSetProportional(playerid,Textdraw1, 1); PlayerTextDrawSetShadow(playerid,Textdraw1, 1); PlayerTextDrawUseBox(playerid,Textdraw1, 1); PlayerTextDrawBoxColor(playerid,Textdraw1, 255); PlayerTextDrawTextSize(playerid,Textdraw1, 180.000000, 110.000000); PlayerTextDrawSetPreviewModel(playerid, Textdraw1, 451); PlayerTextDrawSetPreviewRot(playerid, Textdraw1, -16.000000, 0.000000, 70.000000, 1.000000); PlayerTextDrawSetSelectable(playerid,Textdraw1, 0); Textdraw2 = CreatePlayerTextDraw(playerid,160.000000, 0.000000, "New Textdraw"); PlayerTextDrawBackgroundColor(playerid,Textdraw2, 255); PlayerTextDrawFont(playerid,Textdraw2, 5); PlayerTextDrawLetterSize(playerid,Textdraw2, 0.500000, 1.000000); PlayerTextDrawColor(playerid,Textdraw2, -1); PlayerTextDrawSetOutline(playerid,Textdraw2, 0); PlayerTextDrawSetProportional(playerid,Textdraw2, 1); PlayerTextDrawSetShadow(playerid,Textdraw2, 1); PlayerTextDrawUseBox(playerid,Textdraw2, 1); PlayerTextDrawBoxColor(playerid,Textdraw2, 255); PlayerTextDrawTextSize(playerid,Textdraw2, 311.000000, 108.000000); PlayerTextDrawSetPreviewModel(playerid, Textdraw2, 902); PlayerTextDrawSetPreviewRot(playerid, Textdraw2, 90.000000, 180.000000, 90.000000, 1.000000); PlayerTextDrawSetSelectable(playerid,Textdraw2, 0); Textdraw3 = CreatePlayerTextDraw(playerid,253.000000, 10.000000, "GTA-VIETNAM.NET"); PlayerTextDrawBackgroundColor(playerid,Textdraw3, 255); PlayerTextDrawFont(playerid,Textdraw3, 1); PlayerTextDrawLetterSize(playerid,Textdraw3, 0.500000, 1.000000); PlayerTextDrawColor(playerid,Textdraw3, -1); PlayerTextDrawSetOutline(playerid,Textdraw3, 0); PlayerTextDrawSetProportional(playerid,Textdraw3, 1); PlayerTextDrawSetShadow(playerid,Textdraw3, 1); PlayerTextDrawSetSelectable(playerid,Textdraw3, 0); Textdraw4 = CreatePlayerTextDraw(playerid,14.000000, 89.000000, "Game nhap vai dinh cao"); PlayerTextDrawBackgroundColor(playerid,Textdraw4, 255); PlayerTextDrawFont(playerid,Textdraw4, 1); PlayerTextDrawLetterSize(playerid,Textdraw4, 0.500000, 1.000000); PlayerTextDrawColor(playerid,Textdraw4, -1); PlayerTextDrawSetOutline(playerid,Textdraw4, 0); PlayerTextDrawSetProportional(playerid,Textdraw4, 1); PlayerTextDrawSetShadow(playerid,Textdraw4, 1); PlayerTextDrawSetSelectable(playerid,Textdraw4, 0); Textdraw5 = CreatePlayerTextDraw(playerid,451.000000, 90.000000, "GTA Online Viet Nam"); PlayerTextDrawBackgroundColor(playerid,Textdraw5, 255); PlayerTextDrawFont(playerid,Textdraw5, 1); PlayerTextDrawLetterSize(playerid,Textdraw5, 0.500000, 1.000000); PlayerTextDrawColor(playerid,Textdraw5, -1); PlayerTextDrawSetOutline(playerid,Textdraw5, 0); PlayerTextDrawSetProportional(playerid,Textdraw5, 1); PlayerTextDrawSetShadow(playerid,Textdraw5, 1); PlayerTextDrawSetSelectable(playerid,Textdraw5, 0); Textdraw6 = CreatePlayerTextDraw(playerid,120.000000, 390.000000, "Group: *******/groups/gtavietnam.net"); PlayerTextDrawBackgroundColor(playerid,Textdraw6, 255); PlayerTextDrawFont(playerid,Textdraw6, 3); PlayerTextDrawLetterSize(playerid,Textdraw6, 0.619999, 2.000000); PlayerTextDrawColor(playerid,Textdraw6, -1); PlayerTextDrawSetOutline(playerid,Textdraw6, 0); PlayerTextDrawSetProportional(playerid,Textdraw6, 1); PlayerTextDrawSetShadow(playerid,Textdraw6, 1); PlayerTextDrawSetSelectable(playerid,Textdraw6, 0);
sorry because I do not speak English very well