Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- new gTeam[MAX_PLAYERS];
- new string[128];
- new Text:Textdraw0;
- new Text:Textdraw1;
- new Text:Textdraw2;
- new Text:Textdraw3;
- new Text:Textdraw4;
- new Text:Textdraw5;
- forward HPCHECK(playerid);
- forward FlashBrains(playerid);
- forward FlashBrains2(playerid);
- #define TEAM_ZOMBIE 0
- stock ZombieSetUp(playerid)
- {
- SetPlayerTeam(playerid, 0);
- SetPlayerHealth(playerid, 100);
- }
- public HPCHECK(playerid)
- {
- new Float:ZombieHP;
- GetPlayerHealth(playerid,ZombieHP);
- if(gTeam[playerid] == TEAM_ZOMBIE)
- {
- if(ZombieHP < 0.0 && 0.5 && 0.10 && 0.15 && 0.20 && 0.25 && 0.30 && 0.35 && 0.40 && 0.45 && 0.50 && 0.55 && 0.60 && 0.65 && 0.70 && 0.75 && 0.80 && 0.85 && 0.90 && 0.95 && 100.0 )
- {
- format(string, sizeof(string), "TEAM: ~y~ZOMBIE~n~ ~r~HP: ~w~[[ ~y~ %s ~w~]]", ZombieHP);
- TextDrawSetString(Textdraw5,string);
- }
- }
- return 1;
- }
- public FlashBrains(playerid)
- {
- TextDrawHideForPlayer(playerid, Textdraw4);
- SetTimer("FlashBrains2",4000,true);
- }
- public FlashBrains2(playerid)
- {
- TextDrawShowForPlayer(playerid, Textdraw4);
- SetTimer("FlashBrains",4000,true);
- }
- public OnFilterScriptInit()
- {
- SetTimer("HPCHECK",9000,true);
- SetTimer("FlashBrains",9000,false); // starts flashing + 9 seconds to start
- Textdraw0 = TextDrawCreate(2.000000, -1.000000, ".");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.509998, 54.000000);
- TextDrawColor(Textdraw0, -1);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- TextDrawUseBox(Textdraw0, 1);
- TextDrawBoxColor(Textdraw0, -13495236);
- TextDrawTextSize(Textdraw0, 638.000000, 0.000000);
- Textdraw1 = TextDrawCreate(447.000000, 270.000000, "~r~±~n~±~n~±~n~±~n~±~n~±~n~±");
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 1);
- TextDrawLetterSize(Textdraw1, 2.409998, 1.999999);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetOutline(Textdraw1, 1);
- TextDrawSetProportional(Textdraw1, 1);
- Textdraw2 = TextDrawCreate(430.000000, 290.000000, "~r~±~n~±~n~±~n~±~n~±~n~±");
- TextDrawBackgroundColor(Textdraw2, 255);
- TextDrawFont(Textdraw2, 1);
- TextDrawLetterSize(Textdraw2, 2.049999, 1.899999);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetOutline(Textdraw2, 1);
- TextDrawSetProportional(Textdraw2, 1);
- Textdraw3 = TextDrawCreate(430.000000, 310.000000, "~r~§~n~§~n~§~b~§~n~±");
- TextDrawBackgroundColor(Textdraw3, 255);
- TextDrawFont(Textdraw3, 1);
- TextDrawLetterSize(Textdraw3, 0.899999, 2.000000);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetOutline(Textdraw3, 1);
- TextDrawSetProportional(Textdraw3, 1);
- Textdraw4 = TextDrawCreate(39.000000, 310.000000, "BRAINS ...");
- TextDrawBackgroundColor(Textdraw4, 255);
- TextDrawFont(Textdraw4, 1);
- TextDrawLetterSize(Textdraw4, 0.610000, 3.000000);
- TextDrawColor(Textdraw4, -65281);
- TextDrawSetOutline(Textdraw4, 1);
- TextDrawSetProportional(Textdraw4, 1);
- Textdraw5 = TextDrawCreate(500.000000, 110.000000, " TEAM: ~y~ZOMBIE~n~ ~r~HP: ~w~[[ ~y~ 100 ~w~]] ");
- TextDrawBackgroundColor(Textdraw5, 255);
- TextDrawFont(Textdraw5, 1);
- TextDrawLetterSize(Textdraw5, 0.310000, 1.000000);
- TextDrawColor(Textdraw5, -1);
- TextDrawSetOutline(Textdraw5, 1);
- TextDrawSetProportional(Textdraw5, 1);
- TextDrawUseBox(Textdraw5, 1);
- TextDrawBoxColor(Textdraw5, 844797500);
- TextDrawTextSize(Textdraw5, 596.000000, 1.000000);
- return 1;
- }
- public OnFilterScriptExit()
- {
- TextDrawHideForAll(Textdraw0);
- TextDrawDestroy(Textdraw0);
- TextDrawHideForAll(Textdraw1);
- TextDrawDestroy(Textdraw1);
- TextDrawHideForAll(Textdraw2);
- TextDrawDestroy(Textdraw2);
- TextDrawHideForAll(Textdraw3);
- TextDrawDestroy(Textdraw3);
- TextDrawHideForAll(Textdraw4);
- TextDrawDestroy(Textdraw4);
- TextDrawHideForAll(Textdraw5);
- TextDrawDestroy(Textdraw5);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- if(gTeam[playerid] == TEAM_ZOMBIE)
- {
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw5);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement