[FilterScript] Hammer Time
#1

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.
Reply
#2

HAHAH its cool
+rep
Reply
#3

Hammer time.

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

cool
Reply
#5

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
Reply
#6

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
Reply
#7

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.!!!
Reply
#8

Thanks Guys
Reply
#9

Good work!
Reply
#10

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

Btw which commands u type for start the anim?

Thank.
Reply
#11

lol cool!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)