Raised This Month: $51 Target: $400
 12% 

[REQUEST] Harlem Shake event


Post New Thread Reply   
 
Thread Tools Display Modes
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 02-22-2013 , 23:05   Re: [REQUEST] Harlem Shake event
Reply With Quote #11

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#include <fakemeta_util>

#define PLUGIN "HarlemShake"
#define VERSION "2.0"
#define AUTHOR "ironskillz1"

public plugin_init() {
     
register_plugin(PLUGINVERSIONAUTHOR)
 
     
register_clcmd"say /shake""Shake" // Command!
     
register_clcmd"say /harlemshake""Shake" // Command!


public 
plugin_precache()
{
 
precache_sound("sound/harlemshake.mp3"); // sound
}

public 
Shake(id
{
 if(!(
get_user_flags(id) & ADMIN_IMMUNITY)) // is user admin?
 
{
  
client_print(idprint_chat"Only Owner can use this command!"// if not print this 
 
}
else
{
 
set_task(0.1,"Music"); // start music
 
set_task(0.1,"Dhud"); // Dhud message
 
set_task(15.5,"Slap"); // start slaping 
 
set_task(28.0,"Remove"); // remove slaping
}
}
public 
Music() {
  
client_cmd(0"mp3 play ^"sound/harlemshake.mp3^"");// play music
}

public 
Dhud() 
{
  
set_dhudmessage(030500.010.1501.01.00.10.2)
  
show_dhudmessage 0".:: Harlem Shake Event ::."// print permanent dhud message in left top corner
  
set_task(0.1,"Dhud");
}

public 
Slap() // SLAP !!
{
  new 
iTotalall[32]
  
get_playersalliTotal"a")
 
  for ( new 
0iTotali++ ) 
{  
         new 
id all[i]
         
slap_new(id)
 }
 
 
set_task(0.5,"Slap"); // SLAP TIME
}

public 
slap_new(id


    if(!
is_user_alive(id)) 
    return

    new 
Float:velocity[3
    
pev(idpev_velocityvelocity

    new 
Float:angles[3], Float:v_forward[3
    
pev(idpev_anglesangles

    
angle_vector(anglesANGLEVECTOR_FORWARDv_forward

    
xs_vec_mul_scalar(v_forward220.0v_forward
    
xs_vec_add(velocityv_forwardvelocity
    
velocity[2] += 20.0 

    set_pev
(idpev_velocityvelocity

    new 
Float:punchangle[3
    
punchangle[0] = random_float(-20.020.0
    
punchangle[1] = random_float(-20.020.0
    
set_pev(idpev_punchanglepunchangle)             


public 
Remove() // remove slap!
{
 
remove_task();

Just need to fix it starts the song

Last edited by Cheezpuff; 02-22-2013 at 23:09.
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
chintu
Senior Member
Join Date: Jul 2013
Old 04-23-2016 , 09:22   Re: [REQUEST] Harlem Shake event
Reply With Quote #12

Quote:
Originally Posted by Cheezpuff View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <dhudmessage>
#include <fakemeta_util>

#define PLUGIN "HarlemShake"
#define VERSION "2.0"
#define AUTHOR "ironskillz1"

public plugin_init() {
     
register_plugin(PLUGINVERSIONAUTHOR)
 
     
register_clcmd"say /shake""Shake" // Command!
     
register_clcmd"say /harlemshake""Shake" // Command!


public 
plugin_precache()
{
 
precache_sound("sound/harlemshake.mp3"); // sound
}

public 
Shake(id
{
 if(!(
get_user_flags(id) & ADMIN_IMMUNITY)) // is user admin?
 
{
  
client_print(idprint_chat"Only Owner can use this command!"// if not print this 
 
}
else
{
 
set_task(0.1,"Music"); // start music
 
set_task(0.1,"Dhud"); // Dhud message
 
set_task(15.5,"Slap"); // start slaping 
 
set_task(28.0,"Remove"); // remove slaping
}
}
public 
Music() {
  
client_cmd(0"mp3 play ^"sound/harlemshake.mp3^"");// play music
}

public 
Dhud() 
{
  
set_dhudmessage(030500.010.1501.01.00.10.2)
  
show_dhudmessage 0".:: Harlem Shake Event ::."// print permanent dhud message in left top corner
  
set_task(0.1,"Dhud");
}

public 
Slap() // SLAP !!
{
  new 
iTotalall[32]
  
get_playersalliTotal"a")
 
  for ( new 
0iTotali++ ) 
{  
         new 
id all[i]
         
slap_new(id)
 }
 
 
set_task(0.5,"Slap"); // SLAP TIME
}

public 
slap_new(id


    if(!
is_user_alive(id)) 
    return

    new 
Float:velocity[3
    
pev(idpev_velocityvelocity

    new 
Float:angles[3], Float:v_forward[3
    
pev(idpev_anglesangles

    
angle_vector(anglesANGLEVECTOR_FORWARDv_forward

    
xs_vec_mul_scalar(v_forward220.0v_forward
    
xs_vec_add(velocityv_forwardvelocity
    
velocity[2] += 20.0 

    set_pev
(idpev_velocityvelocity

    new 
Float:punchangle[3
    
punchangle[0] = random_float(-20.020.0
    
punchangle[1] = random_float(-20.020.0
    
set_pev(idpev_punchanglepunchangle)             


public 
Remove() // remove slap!
{
 
remove_task();

Just need to fix it starts the song
Heyy.!
Can u make this screen flashing & auto spins as like in this
video :- https://www.youtube.com/watch?v=RB2fdxZq41A

Thank you.!
In advance
chintu is offline
chintu
Senior Member
Join Date: Jul 2013
Old 05-01-2016 , 09:21   Re: [REQUEST] Harlem Shake event
Reply With Quote #13

bump.!!
chintu is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 05-01-2016 , 12:22   Re: [REQUEST] Harlem Shake event
Reply With Quote #14

Check my oni menu, if you want a good effect.
__________________
Contact: Steam
Videos: Youtube
SkumTomteN is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-01-2016 , 12:58   Re: [REQUEST] Harlem Shake event
Reply With Quote #15

Quote:
Originally Posted by SkumTomteN View Post
Check my oni menu, if you want a good effect.

kkkkkk
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 10:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode