SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 31/05/2014, 11:17 AM   #1
Mriss
Gangsta
 
Join Date: Jan 2014
Location: Notepad ++
Posts: 508
Reputation: 43
Wink Hammer Time

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.
Mriss is offline   Reply With Quote
Old 31/05/2014, 07:17 PM   #2
Devil123
Big Clucker
 
Devil123's Avatar
 
Join Date: Sep 2013
Location: Jordan
Posts: 75
Reputation: 2
Default Re: Hammer Time

HAHAH its cool
+rep
Devil123 is offline   Reply With Quote
Old 01/06/2014, 12:26 AM   #3
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,133
Reputation: 445
Default Re: Hammer Time

Hammer time.

**/me takes off their pants, as they begin hammer-dancing. **
Abagail is offline   Reply With Quote
Old 01/06/2014, 12:29 AM   #4
Team_PRO
High-roller
 
Team_PRO's Avatar
 
Join Date: Aug 2012
Location: Southeast Asia
Posts: 1,840
Reputation: 87
Default Re: Hammer Time

cool
__________________
Retired Player, Since 2009 Player


(click the picture to visit our official website)
Gaming Forecast Forum | SA-MP Zombie Discord Server | SA-MP Zombie Server [Click to Join]
Team_PRO is offline   Reply With Quote
Old 03/06/2014, 01:09 AM   #5
Kitten
High-roller
 
Join Date: Jul 2010
Location: United States
Posts: 2,169
Reputation: 343
Default Re: Hammer Time

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
Kitten is offline   Reply With Quote
Old 03/06/2014, 01:12 AM   #6
TDM
Banned
 
Join Date: Jul 2013
Location: Screw h8trs
Posts: 191
Reputation: 50
Default Re: Hammer Time

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
TDM is offline   Reply With Quote
Old 03/06/2014, 01:26 AM   #7
Agent008
Big Clucker
 
Agent008's Avatar
 
Join Date: May 2014
Location: Earth Planet
Posts: 129
Reputation: 6
Default Re: Hammer Time

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.!!!
Agent008 is offline   Reply With Quote
Old 03/06/2014, 06:46 AM   #8
Mriss
Gangsta
 
Join Date: Jan 2014
Location: Notepad ++
Posts: 508
Reputation: 43
Default Re: Hammer Time

Thanks Guys
Mriss is offline   Reply With Quote
Old 03/06/2014, 07:39 AM   #9
iRaiDeN
Huge Clucker
 
iRaiDeN's Avatar
 
Join Date: Mar 2014
Location: Israel
Posts: 480
Reputation: 41
Default Re: Hammer Time

Good work!
iRaiDeN is offline   Reply With Quote
Old 03/06/2014, 09:27 AM   #10
Agent008
Big Clucker
 
Agent008's Avatar
 
Join Date: May 2014
Location: Earth Planet
Posts: 129
Reputation: 6
Default Re: Hammer Time

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

Btw which commands u type for start the anim?

Thank.
Agent008 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make when player type command one time to enable, second time to disable ? bustern Scripting Help 3 04/09/2013 08:35 AM
[FilterScript] Ban hammer Sellize Filterscripts 7 29/06/2013 07:13 AM
Stop! Hammer time! kaisersouse Everything and Nothing 26 07/01/2009 08:48 PM


All times are GMT. The time now is 11:59 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.