#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;
}
plugins sscanf
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 |
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 |