Raised This Month: $ Target: $400
 0% 

[solved]Lightning (target problem) , ScreenShake


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 08-26-2008 , 11:27   Re: Lightning (target problem) , ScreenShake
Reply With Quote #2

For problem 2 - ScreenShake: try this:
PHP Code:
new ScreenShake
public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("Damage""evn_damage""b""2!0""3=0""4!0");
    
ScreenShake get_user_msgid("ScreenShake")
}
public 
evn_damage(victim)
{
    new 
attacker get_user_attacker(victim);
    if(
get_user_team(victim) != get_user_team(attacker))
        
screen_shake(victim);
}
public 
screen_shake(index)
{
    if(
is_user_connected(index))
    {
        
message_begin(MSG_ONE,ScreenShake,{0,0,0},index);
        
write_short(1<<13);
        
write_short(1<<13);
        
write_short(1<<13);
        
message_end();
    }

__________________

anakin_cstrike is offline
 



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 03:14.


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