SA-MP Forums Archive
[FilterScript] Witch Skin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Witch Skin (/showthread.php?tid=471175)



Witch Skin - Youarex - 21.10.2013

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/



Re: Witch Skin - Ninad - 21.10.2013

Nice one! But where can we use this! RP?


Re: Witch Skin - xF4Life - 21.10.2013

nice fs


Re: Witch Skin - Marshall32 - 21.10.2013

No idea where to use it. Also its simple.


Re: Witch Skin - Hiddos - 21.10.2013

thanks i was looking for this


Re: Witch Skin - Youarex - 21.10.2013

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


Re: Witch Skin - Akira297 - 21.10.2013

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


Re: Witch Skin - [WA]iRonan - 22.10.2013

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


Re: Witch Skin - Youarex - 22.10.2013

Updated video in the first post.


Re: Witch Skin - refreshz - 22.10.2013

GooDjObER MAN