Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ( Includes )
- #include <a_samp>
- // ( Defines )
- #define function%0(%1) \
- forward%0(%1); public%0(%1)
- // ( Variables )
- static Rotation = 0, Text:TD_Tree[ 2 ];
- // ( Callbacks )
- public OnFilterScriptInit( )
- {
- SetTimer( "UpdateBradulet", 100, true );
- SetGameModeText( "Test Server" );
- TD_Tree[ 0 ] = TextDrawCreate(515.000000, 326.000000, "BRAD");
- TextDrawBackgroundColor(TD_Tree[ 0 ], 0);
- TextDrawFont(TD_Tree[ 0 ], 5);
- TextDrawLetterSize(TD_Tree[ 0 ], 0.500000, 1.000000);
- TextDrawColor(TD_Tree[ 0 ], -1);
- TextDrawSetOutline(TD_Tree[ 0 ], 0);
- TextDrawSetProportional(TD_Tree[ 0 ], 1);
- TextDrawSetShadow(TD_Tree[ 0 ], 1);
- TextDrawUseBox(TD_Tree[ 0 ], 1);
- TextDrawBoxColor(TD_Tree[ 0 ], 0);
- TextDrawTextSize(TD_Tree[ 0 ], 134.000000, 110.000000);
- TextDrawSetPreviewModel( TD_Tree[ 0 ], 19076);
- TextDrawSetPreviewRot( TD_Tree[ 0 ], 0.000000, 0.000000, -55.000000, 1.000000);
- TextDrawSetSelectable(TD_Tree[ 0 ], 0);
- TD_Tree[ 1 ] = TextDrawCreate(555.000000, 408.000000, "CADOU");
- TextDrawBackgroundColor(TD_Tree[ 1 ], 0);
- TextDrawFont(TD_Tree[ 1 ], 5);
- TextDrawLetterSize(TD_Tree[ 1 ], 0.500000, 1.000000);
- TextDrawColor(TD_Tree[ 1 ], -1);
- TextDrawSetOutline(TD_Tree[ 1 ], 0);
- TextDrawSetProportional(TD_Tree[ 1 ], 1);
- TextDrawSetShadow(TD_Tree[ 1 ], 1);
- TextDrawUseBox(TD_Tree[ 1 ], 1);
- TextDrawBoxColor(TD_Tree[ 1 ], 0);
- TextDrawTextSize(TD_Tree[ 1 ], 53.000000, 48.000000);
- TextDrawSetPreviewModel( TD_Tree[ 1 ], 19054);
- TextDrawSetPreviewRot( TD_Tree[ 1 ], -40.000000, 0.000000, 0.000000, 1.000000);
- TextDrawSetSelectable(TD_Tree[ 1 ], 0);
- return true;
- }
- public OnPlayerConnect( playerid )
- {
- TextDrawShowForPlayer( playerid, TD_Tree[ 1 ] );
- return true;
- }
- function UpdateBradulet( )
- {
- switch( Rotation )
- {
- case 0..359: Rotation++;
- case 360: Rotation = 0;
- }
- TextDrawSetPreviewRot( TD_Tree[ 0 ], 0.000000, 0.000000, Rotation, 1.000000 ); // Update Z Rotation
- TextDrawShowForAll( TD_Tree[ 0 ] );
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement