SA-MP Forums Archive
[FilterScript] Hammer Time - 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] Hammer Time (/showthread.php?tid=516448)



Hammer Time - Mriss - 31.05.2014

Hammer Time by Mriss
This Script is a basic script and it is my 2nd release....

Just Add this to your gamemode
pawn Code:
#include <sscanf2>
#include <zcmd>
new gPlayerUsingLoopingAnim[MAX_PLAYERS];
CMD:hammertime(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        LoopingAnim(i,"DANCING","DAN_Down_A",4.0,1,0,0,0,0);
        PlayAudioStreamForPlayer(i, "http://millenium-gaming.com/hammertime.mp3");
    }
    return 1;
}
forward LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp);
LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    gPlayerUsingLoopingAnim[playerid] = 1;
    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
    SetTimer("StopHammerTime", 34000, 0);
}
forward OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp);
OnePlayAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
{
    ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
}
forward StopHammerTime(playerid);
public StopHammerTime(playerid)
{   for(new i = 0; i < MAX_PLAYERS; i++)
    {
    OnePlayAnim(i,"PED","endchat_01",4.0,0,0,0,0,0);
    }
    return 1;
}
And add this to your server .cfg
Code:
plugins sscanf
If you have an Anim that better suits this, Please tell me the anim and I will update this.



Re: Hammer Time - Devil123 - 31.05.2014

HAHAH its cool
+rep


Re: Hammer Time - Abagail - 01.06.2014

Hammer time.

**/me takes off their pants, as they begin hammer-dancing. **


Re: Hammer Time - Team_PRO - 01.06.2014

cool


Re: Hammer Time - Kitten - 03.06.2014

Such a simple script yet FUNNY and badass

I did this on one of my servers I laughed my ass off.
https://www.youtube.com/watch?v=S4h3p6HsLqQ


Re: Hammer Time - TDM - 03.06.2014

Quote:
Originally Posted by Kitten
View Post
Such a simple script yet FUNNY and badass

I did this on one of my servers I laughed my ass off.
https://www.youtube.com/watch?v=S4h3p6HsLqQ
lmao , made me laugh +rep


Re: Hammer Time - Agent008 - 03.06.2014

Quote:
Originally Posted by Kitten
View Post
Such a simple script yet FUNNY and badass

I did this on one of my servers I laughed my ass off.
https://www.youtube.com/watch?v=S4h3p6HsLqQ
LOL.!!!


Re: Hammer Time - Mriss - 03.06.2014

Thanks Guys


Re: Hammer Time - iRaiDeN - 03.06.2014

Good work!


Re: Hammer Time - Agent008 - 03.06.2014

Mriss i will rep if you provide .pwn and .amx files.

Btw which commands u type for start the anim?

Thank.


Re: Hammer Time - Alex Magaсa - 03.06.2014

lol cool!