Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ...... ...... ...... ...... ..... ...... .... .. . ....
- // . . . . . . . . .... . . . ....
- // ...... ...... ...... ...... ..... ...... .. . . . .. Espressino aka KyNe aka Sakura Da Eman ( Tea Starbuck )
- // . . . .... . . .... . . . ....
- // ...... ...... . . . ..... ...... .... . .. ....
- // Steamcommunity.com/id/espressino && facebook.com/originalbudax
- #include <a_samp>
- new Text:RandomBox1;
- new Text:RandomBox0;
- forward ServerMessage();
- new Textdraws[][] =
- {
- "~p~Server Info: ~w~Your Messages 1................................................",
- "~p~Server Info: ~w~Your Messages 2................................................",
- "~p~Server Info: ~w~Your Messages 3................................................",
- "~p~Server Info: ~w~Your Messages 4................................................",
- "~p~Server Info: ~w~Your Messages 5................................................"
- };
- public ServerMessage()
- {
- TextDrawSetString(RandomBox1, Textdraws[random(sizeof(Textdraws))]);
- return 1;
- }
- public OnFilterScriptInit()
- {
- //----------------------------------------------------------------------------//
- SetTimer("ServerMessage",5000,1);
- //----------------------------------------------------------------------------//
- RandomBox0 = TextDrawCreate(639.000000, 417.766662, "TransparentBox");
- TextDrawLetterSize(RandomBox0, 0.000000, 2.587036);
- TextDrawTextSize(RandomBox0, 1.000000, 0.000000);
- TextDrawAlignment(RandomBox0, 1);
- TextDrawColor(RandomBox0, 0);
- TextDrawUseBox(RandomBox0, true);
- TextDrawBoxColor(RandomBox0, 102);
- TextDrawSetShadow(RandomBox0, 0);
- TextDrawSetOutline(RandomBox0, 0);
- TextDrawFont(RandomBox0, 0);
- RandomBox1 = TextDrawCreate(10.000000, 423.733367, "String");
- TextDrawLetterSize(RandomBox1, 0.449999, 1.600000);
- TextDrawAlignment(RandomBox1, 1);
- TextDrawColor(RandomBox1, -16711681);
- TextDrawSetShadow(RandomBox1, -2);
- TextDrawSetOutline(RandomBox1, 0);
- TextDrawBackgroundColor(RandomBox1, 51);
- TextDrawFont(RandomBox1, 1);
- TextDrawSetProportional(RandomBox1, 1);
- for(new i; i < MAX_PLAYERS; i ++)
- {
- if(IsPlayerConnected(i))
- {
- TextDrawShowForPlayer(i, RandomBox0);
- TextDrawShowForPlayer(i, RandomBox1);
- }
- }
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawHideForAll(RandomBox1);
- TextDrawDestroy(RandomBox1);
- TextDrawHideForAll(RandomBox0);
- TextDrawDestroy(RandomBox0);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TextDrawShowForPlayer(playerid, RandomBox0);
- TextDrawShowForPlayer(playerid, RandomBox1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment