Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnGameModeInit()
- {
- Textdraw0 = TextDrawCreate(299.000000, 158.000000, "3");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 3);
- TextDrawLetterSize(Textdraw0, 1.789999, 7.299997);
- TextDrawColor(Textdraw0, Uztemimas());
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- return 1;
- }
- CMD:s(playerid,params[])
- {
- SetTimerEx("Uztemimas", 30, 0, "i", playerid);
- TextDrawShowForPlayer(playerid,Textdraw0);
- return 1;
- }
- #define SPALVA1 0x00000000
- #define SPALVA2 0x00000008
- #define SPALVA3 0x00000010
- #define SPALVA4 0x00000018
- #define SPALVA5 0x00000020
- #define SPALVA6 0x00000028
- #define SPALVA7 0x00000030
- #define SPALVA8 0x00000038
- #define SPALVA9 0x00000040
- #define SPALVA10 0x00000048
- #define SPALVA11 0x00000050
- #define SPALVA12 0x00000058
- #define SPALVA13 0x00000060
- #define SPALVA14 0x00000068
- #define SPALVA15 0x00000070
- #define SPALVA16 0x00000078
- #define SPALVA17 0x00000080
- #define SPALVA18 0x00000088
- #define SPALVA19 0x00000090
- #define SPALVA20 0x00000098
- #define SPALVA21 0x000000A0
- #define SPALVA22 0x000000A8
- #define SPALVA23 0x000000B0
- #define SPALVA24 0x000000B8
- #define SPALVA25 0x000000C0
- #define SPALVA26 0x000000C8
- #define SPALVA27 0x000000D0
- #define SPALVA28 0x000000D8
- #define SPALVA29 0x000000E0
- #define SPALVA30 0x000000E8
- #define SPALVA31 0x000000F0
- #define SPALVA32 0x000000F8
- #define SPALVA33 0x000000FF
- forward Uztemimas();
- public Uztemimas() // iki 32
- {
- Laikas++;
- switch(Laikas)
- {
- case 0: return SPALVA1;
- case 1: return SPALVA2;
- case 2: return SPALVA3;
- case 3: return SPALVA4;
- case 4: return SPALVA5;
- case 5: return SPALVA6;
- case 6: return SPALVA7;
- case 7: return SPALVA8;
- case 8: return SPALVA9;
- case 9: return SPALVA10;
- case 10: return SPALVA11;
- case 11: return SPALVA12;
- case 12: return SPALVA13;
- case 13: return SPALVA14;
- case 14: return SPALVA15;
- case 15: return SPALVA16;
- case 16: return SPALVA17;
- case 17: return SPALVA18;
- case 18: return SPALVA19;
- case 19: return SPALVA20;
- case 20: return SPALVA21;
- case 21: return SPALVA22;
- case 22: return SPALVA23;
- case 23: return SPALVA24;
- case 24: return SPALVA25;
- case 25: return SPALVA26;
- case 26: return SPALVA27;
- case 27: return SPALVA28;
- case 28: return SPALVA29;
- case 29: return SPALVA30;
- case 30: return SPALVA31;
- case 31: return SPALVA32;
- case 32: return SPALVA33;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment