[FilterScript] Witch Skin
#1

Witch Skin

Type '/witch' to transform yourself into witch and again to transform back (rcon admin). The witch can cast spells, but since I'm busy doing other "very cool stuff", you would have to create the spells yourself. Read instructions from code-example below. Maybe it's useless script, I don't know...

Video: When a spell is being performed, the witch will wave her magic wand. Click here to see the witch skin.

[ame]http://www.youtube.com/watch?v=BAkqUUs1ecI;hd=1[/ame]

Map: https://sampforum.blast.hk/showthread.php?tid=471484

Spells: To cast a spell you just have to say it loud. For example: Duratus! (notice the exclamation mark)

Code: How to create spells yourself?

Declare a spell word in the array:

pawn Код:
new my_spells[][24] =
{
    "Duratus!", //freeze
    "Expecto patronum!" //example
};
Then write special callbacks related to spell words and some code inside them:

pawn Код:
SPELL:Duratus(playerid)
{
    //We're going to freeze closest player for 5 seconds
   
    new
        closestid = GetClosestPlayerToPlayer(playerid, 30.0);

    if(closestid != INVALID_PLAYER_ID)
    {
        TogglePlayerControllable(closestid, 0);
        SendClientMessage(closestid, -2, "* The witch has spelled you!");
        SetTimerEx("UnfreezeSpelledPlayer", 5000, 0, "i", closestid);

        new str[64];
        format(str, sizeof str,"* You have frozen playerid %i!", closestid);
        SendClientMessage(playerid, -1, str);
    }
    else
    {
        SendClientMessage(playerid, -1, "There's nobody to freeze in this area.");
    }
    return 1;
}

//example
SPELL:Expecto_patronum(playerid)
{
    SendClientMessage(playerid, -1, "* This is 'Expecto patronum' spell.");
    //your code
    return 1;
}
The rest you can hopefully figure out in the filterscript.

Download: http://www.solidfiles.com/d/b855ea78f0/
Reply
#2

Nice one! But where can we use this! RP?
Reply
#3

nice fs
Reply
#4

No idea where to use it. Also its simple.
Reply
#5

thanks i was looking for this
Reply
#6

Quote:
Originally Posted by Ninad
Посмотреть сообщение
Nice one! But where can we use this! RP?
Quote:
Originally Posted by MrEdinLaw
Посмотреть сообщение
No idea where to use it. Also its simple.
Imagination can take you everywhere
Reply
#7

Title is misleading. I would of named it something related to spells.
Reply
#8

I tought you was somebody who couldn't speak english properly but it's actually the word witch lol. Good work!
Reply
#9

Updated video in the first post.
Reply
#10

GooDjObER MAN
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)