View Single Post
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 02-21-2013 , 06:15   Re: [REQUEST] Harlem Shake event
Reply With Quote #4

Updated! 2.0
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#define PLUGIN "HarlemShake"
#define VERSION "2.0"
#define AUTHOR "ironskillz1"

public plugin_init() {
 register_plugin(PLUGIN, VERSION, AUTHOR)
 
 register_clcmd( "say /shake", "Shake" ) // Command!
 register_clcmd( "say /harlemshake", "Shake" ) // Command!
} 
public plugin_precache()
{
 precache_generic("sound/harlemshake.mp3") // sound
}
public Shake(id) 
{
 if(!(get_user_flags(id) & ADMIN_CFG)) // is user admin?
 {
  client_print(id, print_chat, "Only ADMINS can use this command!") // if not print this 
 }
 set_task(0.1,"Music"); // start music
 set_task(0.1,"Dhud"); // Dhud message
 set_task(17.0,"Slap"); // start slaping 
 set_task(30.0,"Remove"); // remove slaping
}
public Music() 
{
 client_cmd(0, "mp3 play ^"sound/harlemshake.mp3^"") // play music
}
public Dhud() 
{
 set_dhudmessage(0, 30, 50, 0.01, 0.15, 0, 1.0, 1.0, 0.1, 0.2)
 show_dhudmessage ( 0, ".:: Harlem Shake Event ::.") // print permanent dhud message in left top corner
 set_task(0.1,"Dhud");
}
public Slap() // SLAP !!
{
 new iTotal, all[32]
 get_players( all, iTotal, "a")
 
 for ( new i = 0; i < iTotal; i++ ) 
 {  
         new id = all[i]
         user_slap( id, 0 )
 }
 
 set_task(0.5,"Slap"); // SLAP TIME
}
public Remove() // remove slap!
{
 remove_task();
}
Here is the song
put it in cstrike/sound/harlemshake.mp3
Attached Files
File Type: zip harlemshake.zip (452.6 KB, 229 views)
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 02-21-2013 at 06:33.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1