Code: Select all
public event_Damage(id) { if(get_cvar_num(CVAR_STATUS) <= 0 || !is_user_connected(id) || !is_user_alive(id) || is_user_bot(id)) return; new iWeapID, attacker = get_user_attacker(id , iWeapID); if(!is_user_connected(attacker)) return; if(iWeapID == CSW_KNIFE) { new Float:fVec[3]; fVec[0] = random_float(PA_LOW , PA_HIGH); fVec[1] = random_float(PA_LOW , PA_HIGH); fVec[2] = random_float(PA_LOW , PA_HIGH); entity_set_vector(id , EV_VEC_punchangle , fVec); message_begin(MSG_ONE , gMsgScreenShake , {0,0,0} ,id) write_short( 1<<14); write_short( 1<<14 ); write_short( 1<<14 ); message_end(); fVec[0] = random_float(PAC_LOW , PAC_HIGH); fVec[1] = random_float(PAC_LOW , PAC_HIGH); fVec[2] = random_float(PAC_LOW , PAC_HIGH); entity_set_vector(id , EV_VEC_punchangle , fVec); message_begin(MSG_ONE_UNRELIABLE , gMsgScreenFade , {0,0,0} , id); write_short( 1<<10 ); write_short( 1<<10 ); write_short( 1<<12 ); write_byte( 0 ); write_byte( 0 ); write_byte( 180 ); write_byte( 128 ); message_end(); }}
Paraso tarkim say /sokas.
Tarkim visi su knife pjausto kaip ir seniau bet zaidejas parases
say /sokas i concole ir ipjoves kamnors, tas zaidejas kuriam ipjoves
Pajaus sita efecta.
Galit padet?