02.08.2013, 00:14
Hey everyone, I am trying to make a high score list and I have made the TextDraw codes and all that, but I don't know how to script it?
If someone could help that would be great! Thanks!
Textdraw Codes:
If someone could help that would be great! Thanks!
Textdraw Codes:
Quote:
// TextDraw developed using Zamaroht's Textdraw Editor 1.0 // On top of script: new Text:Textdraw0; new Text:Textdraw1; new Text:Textdraw2; new Text:Textdraw3; new Text:Textdraw4; new Text:Textdraw5; new Text:Textdraw6; new Text:Textdraw7; new Text:Textdraw8; new Text:Textdraw9; new Text:Textdraw10; new Text:Textdraw11; new Text:Textdraw12; new Text:Textdraw13; new Text:Textdraw14; new Text:Textdraw15; // In OnGameModeInit prefferably, we procced to create our textdraws: Textdraw0 = TextDrawCreate(554.000000, 98.000000, "-Top Players-"); TextDrawAlignment(Textdraw0, 2); TextDrawBackgroundColor(Textdraw0, 255); TextDrawFont(Textdraw0, 2); TextDrawLetterSize(Textdraw0, 0.500000, 2.000000); TextDrawColor(Textdraw0, -16776961); TextDrawSetOutline(Textdraw0, 0); TextDrawSetProportional(Textdraw0, 1); TextDrawSetShadow(Textdraw0, 1); Textdraw1 = TextDrawCreate(485.000000, 121.000000, "PLAYER"); TextDrawBackgroundColor(Textdraw1, 255); TextDrawFont(Textdraw1, 1); TextDrawLetterSize(Textdraw1, 0.500000, 2.000000); TextDrawColor(Textdraw1, 16711935); TextDrawSetOutline(Textdraw1, 0); TextDrawSetProportional(Textdraw1, 1); TextDrawSetShadow(Textdraw1, 1); TextDrawUseBox(Textdraw1, 1); TextDrawBoxColor(Textdraw1, 255); TextDrawTextSize(Textdraw1, 629.000000, 30.000000); Textdraw2 = TextDrawCreate(485.000000, 145.000000, "PLAYER"); TextDrawBackgroundColor(Textdraw2, 255); TextDrawFont(Textdraw2, 1); TextDrawLetterSize(Textdraw2, 0.500000, 2.000000); TextDrawColor(Textdraw2, 16711935); TextDrawSetOutline(Textdraw2, 0); TextDrawSetProportional(Textdraw2, 1); TextDrawSetShadow(Textdraw2, 1); TextDrawUseBox(Textdraw2, 1); TextDrawBoxColor(Textdraw2, 252645375); TextDrawTextSize(Textdraw2, 629.000000, 30.000000); Textdraw3 = TextDrawCreate(485.000000, 169.000000, "PLAYER"); TextDrawBackgroundColor(Textdraw3, 255); TextDrawFont(Textdraw3, 1); TextDrawLetterSize(Textdraw3, 0.500000, 2.000000); TextDrawColor(Textdraw3, 16711935); TextDrawSetOutline(Textdraw3, 0); TextDrawSetProportional(Textdraw3, 1); TextDrawSetShadow(Textdraw3, 1); TextDrawUseBox(Textdraw3, 1); TextDrawBoxColor(Textdraw3, 255); TextDrawTextSize(Textdraw3, 629.000000, 30.000000); Textdraw4 = TextDrawCreate(485.000000, 193.000000, "PLAYER"); TextDrawBackgroundColor(Textdraw4, 255); TextDrawFont(Textdraw4, 1); TextDrawLetterSize(Textdraw4, 0.500000, 2.000000); TextDrawColor(Textdraw4, 16711935); TextDrawSetOutline(Textdraw4, 0); TextDrawSetProportional(Textdraw4, 1); TextDrawSetShadow(Textdraw4, 1); TextDrawUseBox(Textdraw4, 1); TextDrawBoxColor(Textdraw4, 252645375); TextDrawTextSize(Textdraw4, 629.000000, 30.000000); Textdraw5 = TextDrawCreate(485.000000, 217.000000, "PLAYER"); TextDrawBackgroundColor(Textdraw5, 255); TextDrawFont(Textdraw5, 1); TextDrawLetterSize(Textdraw5, 0.500000, 2.000000); TextDrawColor(Textdraw5, 16711935); TextDrawSetOutline(Textdraw5, 0); TextDrawSetProportional(Textdraw5, 1); TextDrawSetShadow(Textdraw5, 1); TextDrawUseBox(Textdraw5, 1); TextDrawBoxColor(Textdraw5, 255); TextDrawTextSize(Textdraw5, 629.000000, 30.000000); Textdraw6 = TextDrawCreate(615.000000, 217.000000, "0"); TextDrawBackgroundColor(Textdraw6, 255); TextDrawFont(Textdraw6, 1); TextDrawLetterSize(Textdraw6, 0.500000, 2.000000); TextDrawColor(Textdraw6, 16777215); TextDrawSetOutline(Textdraw6, 0); TextDrawSetProportional(Textdraw6, 1); TextDrawSetShadow(Textdraw6, 1); TextDrawUseBox(Textdraw6, 1); TextDrawBoxColor(Textdraw6, 255); TextDrawTextSize(Textdraw6, 629.000000, 30.000000); Textdraw7 = TextDrawCreate(615.000000, 193.000000, "0"); TextDrawBackgroundColor(Textdraw7, 255); TextDrawFont(Textdraw7, 1); TextDrawLetterSize(Textdraw7, 0.500000, 2.000000); TextDrawColor(Textdraw7, 16777215); TextDrawSetOutline(Textdraw7, 0); TextDrawSetProportional(Textdraw7, 1); TextDrawSetShadow(Textdraw7, 1); Textdraw8 = TextDrawCreate(615.000000, 169.000000, "0"); TextDrawBackgroundColor(Textdraw8, 255); TextDrawFont(Textdraw8, 1); TextDrawLetterSize(Textdraw8, 0.500000, 2.000000); TextDrawColor(Textdraw8, 16777215); TextDrawSetOutline(Textdraw8, 0); TextDrawSetProportional(Textdraw8, 1); TextDrawSetShadow(Textdraw8, 1); Textdraw9 = TextDrawCreate(615.000000, 145.000000, "0"); TextDrawBackgroundColor(Textdraw9, 255); TextDrawFont(Textdraw9, 1); TextDrawLetterSize(Textdraw9, 0.500000, 2.000000); TextDrawColor(Textdraw9, 16777215); TextDrawSetOutline(Textdraw9, 0); TextDrawSetProportional(Textdraw9, 1); TextDrawSetShadow(Textdraw9, 1); Textdraw10 = TextDrawCreate(615.000000, 121.000000, "0"); TextDrawBackgroundColor(Textdraw10, 255); TextDrawFont(Textdraw10, 1); TextDrawLetterSize(Textdraw10, 0.500000, 2.000000); TextDrawColor(Textdraw10, 16777215); TextDrawSetOutline(Textdraw10, 0); TextDrawSetProportional(Textdraw10, 1); TextDrawSetShadow(Textdraw10, 1); Textdraw11 = TextDrawCreate(466.000000, 121.000000, "1."); TextDrawBackgroundColor(Textdraw11, 255); TextDrawFont(Textdraw11, 1); TextDrawLetterSize(Textdraw11, 0.500000, 2.000000); TextDrawColor(Textdraw11, -65281); TextDrawSetOutline(Textdraw11, 0); TextDrawSetProportional(Textdraw11, 1); TextDrawSetShadow(Textdraw11, 1); Textdraw12 = TextDrawCreate(464.000000, 145.000000, "2."); TextDrawBackgroundColor(Textdraw12, 255); TextDrawFont(Textdraw12, 1); TextDrawLetterSize(Textdraw12, 0.500000, 2.000000); TextDrawColor(Textdraw12, -65281); TextDrawSetOutline(Textdraw12, 0); TextDrawSetProportional(Textdraw12, 1); TextDrawSetShadow(Textdraw12, 1); Textdraw13 = TextDrawCreate(464.000000, 169.000000, "3."); TextDrawBackgroundColor(Textdraw13, 255); TextDrawFont(Textdraw13, 1); TextDrawLetterSize(Textdraw13, 0.500000, 2.000000); TextDrawColor(Textdraw13, -65281); TextDrawSetOutline(Textdraw13, 0); TextDrawSetProportional(Textdraw13, 1); TextDrawSetShadow(Textdraw13, 1); Textdraw14 = TextDrawCreate(464.000000, 193.000000, "4."); TextDrawBackgroundColor(Textdraw14, 255); TextDrawFont(Textdraw14, 1); TextDrawLetterSize(Textdraw14, 0.500000, 2.000000); TextDrawColor(Textdraw14, -65281); TextDrawSetOutline(Textdraw14, 0); TextDrawSetProportional(Textdraw14, 1); TextDrawSetShadow(Textdraw14, 1); Textdraw15 = TextDrawCreate(464.000000, 217.000000, "5."); TextDrawBackgroundColor(Textdraw15, 255); TextDrawFont(Textdraw15, 1); TextDrawLetterSize(Textdraw15, 0.500000, 2.000000); TextDrawColor(Textdraw15, -65281); TextDrawSetOutline(Textdraw15, 0); TextDrawSetProportional(Textdraw15, 1); TextDrawSetShadow(Textdraw15, 1); // You can now use TextDrawShowForPlayer(-ForAll), TextDrawHideForPlayer(-ForAll) and // TextDrawDestroy functions to show, hide, and destroy the textdraw. |