[FilterScript] Zombie Settings [ Zombie Vision , Showing teams , Showing zombie HP , Blood on vision]
#1

Features:

> A Team system
> using gTeam
> a Zombie Vision
> Zombie HP System
> Zombie Blood on screen
> Disappearing and appearing Brains text draw
> Very Simple Settings for all zombie mod servers out there.

Picture:




Download:

http://pastebin.com/iTw3CSgr

or

pawn Code:
#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;
}
Reply
#2

Err nice job, fairly basic though people want it xD
Reply
#3

Seems to be pretty crazy, nice fs.
Reply
#4

Thanks guys , i was just bored toke a look around threads people asking questions zombie visions etc. i just made this for fun >.< simple thought.
Reply
#5

You sure this is correct?
pawn Code:
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 )
Cause I think, this if will be called everytime, since 0.5 and 0.10 and ... are true.
so basically, it checks like this:
pawn Code:
if(ZombieHP < 0.0 && true && true && true  && true && true && true && true....)
Correct me if I'm wrong.
Reply
#6

lol your a zombie lover nice Job!
Reply
#7

I had something similar for my DM server! Nice job Zombieh Kitteh!
Reply
#8

Quote:
Originally Posted by wups
View Post
You sure this is correct?
pawn Code:
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 )
Cause I think, this if will be called everytime, since 0.5 and 0.10 and ... are true.
so basically, it checks like this:
pawn Code:
if(ZombieHP < 0.0 && true && true && true  && true && true && true && true....)
Correct me if I'm wrong.
Your Right

this should make it work

pawn Code:
if(ZombieHP != 0) // i think
Reply
#9

god kitten, you love your zombies lol. nice work!
Reply
#10

Quote:
Originally Posted by Kitten
View Post
Your Right

this should make it work

pawn Code:
if(ZombieHP != 0) // i think
CREDIT LORENC FOR HELPING U LMAO
Reply
#11

Lot of erors
Reply
#12

Quote:
Originally Posted by Moumen
Посмотреть сообщение
Lot of erors
Yeah i had like 100, can you Show us THE errors?
Reply
#13

Quote:
Originally Posted by Kitten
View Post
Your Right

this should make it work

pawn Code:
if(ZombieHP != 0) // i think
pawn Code:
if(ZombieHP < 0)
And shouldn't this loop through all players?
pawn Code:
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);
}
Reply
#14

Awesome
Reply
#15

Quote:
Originally Posted by Boy
Посмотреть сообщение
Awesome
Hmm , What the hell would you bump a ****** old topic?
Reply
#16

Wow Good Job!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)