Raised This Month: $ Target: $400
 0% 

days for my JB and somthing else


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
saardam
Junior Member
Join Date: Jul 2011
Old 07-27-2011 , 13:03   days for my JB and somthing else
Reply With Quote #1

listen im having a JB server and i use edited version of CF jb.
now , i wanted to do that when i attack a CT/ct attacks me , my crosshair goes down/up/sides.. you know this? i think jb extreme has it. and ,
i need a plugin that in every new round , it will write in humessage
center = bottom
Day 1(every round +1) -1 -1 line down-
Today is Sunday -1 line down-
By XXX.JB
Thx! and i really need the attack plug! and this Knife - Script Sound dosent works!
Compileing Dosent works = error 075
input line too long

PHP Code:
#include <amxmodx> 
#include <engine> 
#include <fakemeta> 


#define MAX_KNIFE_SNDS 9 

new knife_sounds[MAX_KNIFE_SNDS][] = 

    
"weapons/knife_deploy1.wav"
    
"weapons/knife_hit1.wav"
    
"weapons/knife_hit2.wav"
    
"weapons/knife_hit3.wav"
    
"weapons/knife_hit4.wav"
    
"weapons/knife_hitwall1.wav"
    
"weapons/knife_slash1.wav"
    
"weapons/knife_slash2.wav"
    
"weapons/knife_stab.wav" 


new 
fistsounds[MAX_KNIFE_SNDS][] =  

    
"weapons/knife_slash1.wav"
    
"bknuckles/knife_hit1.wav"
    
"bknuckles/knife_hit2.wav"
    
"bknuckles/knife_hit3.wav"
    
"bknuckles/knife_hit4.wav"
    
"bknuckles/knife_hit4.wav"
    
"weapons/knife_slash1.wav"
    
"weapons/knife_slash2.wav"
    
"bknuckles/knife_stab.wav" 


new 
v_fist[] = "models/v_bknuckles.mdl" 
new p_fist[] = "models/p_bknuckles.mdl" 

public plugin_init() 

    
register_event("CurWeapon""Event_CurWeapon""be","1=1"
    
register_event("Damage""Event_Damage""be""2!0")  
    
register_forward(FM_EmitSound "EmitSound"


public 
plugin_precache()  
{     
    
precache_model(v_fist
    
precache_model(p_fist
     
    for(new 
0MAX_KNIFE_SNDSi++) 
        
precache_sound(fistsounds[i]) 


public 
Event_Damage(id)  
{  
    if(!
is_user_alive(id) || !is_user_connected(id))   
        return 
PLUGIN_CONTINUE  
      
    
new AttakerWeaponAttakerPartHit  
    get_user_attacker
(idAttakerWeaponAttakerPartHit)  
      
    if(
AttakerWeapon != CSW_KNIFE)  
        return 
PLUGIN_CONTINUE  
      
    
new Float:Random_Float[3]  
    for(new 
03i++) Random_Float[i] = random_float(100.0150.0)  
    
Punch_View(idRandom_Float)  
      
    return 
PLUGIN_CONTINUE  
}  

public 
Event_CurWeapon(id)  
{   
    new 
weaponID read_data(2)  

    if(
weaponID != CSW_KNIFE
        return 
PLUGIN_CONTINUE 
         
    entity_set_string
(idEV_SZ_viewmodelv_fist
    
entity_set_string(idEV_SZ_weaponmodelp_fist)  
     
    return 
PLUGIN_CONTINUE  


public 
EmitSound(entitychannel, const sound[]) 

    if(
pev_valid(entity) && is_user_alive(entity)) 
    { 
         for(new 
0MAX_KNIFE_SNDSi++) 
         { 
             if(
equal(sound knife_sounds[i])) 
             { 
                    
emit_sound(entitychannelfistsounds[i], 1.0ATTN_NORM0PITCH_NORM
                    return 
FMRES_SUPERCEDE 
             


         } 
    } 
    return 
FMRES_IGNORED
}   

stock Punch_View(idFloat:ViewAngle[3])  
{  
    
entity_set_vector(idEV_VEC_punchangleViewAngle)  

saardam 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 01:05.


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