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

[REQ] Vip menu knife


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
waizedzzy
Member
Join Date: May 2016
Location: France
Old 08-31-2016 , 06:08   [REQ] Vip menu knife
Reply With Quote #1

Hello to all
I'm requesting a Vipmenu for knife server.
[I want that when we say Vipmenu this chooses appears and that choose is only for a map then next map they should rechoose it.
I want this on my Vipmenu:

Gravity x2.
2x Jump.
1 SG with green trail for it.
Invisibility when the VIP don't move.]
+Vip's get free parachute Parachute and their own skin and have +20HP.

Sorry for my bad english.
PS: I searched for this plugin but i didn't find what i wan't so please help me .
__________________
Invincible Wxx ^.^
waizedzzy is offline
7thSense
Member
Join Date: Jul 2016
Old 09-01-2016 , 13:50   Re: [REQ] Vip menu knife
Reply With Quote #2

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

#include <coll_msg>
#include <dhudmessage>
#define PLUGIN "Amxx Knife + Special Abilities"
#define VERSION "2.0"

new string[3], skype[64]
new 
bool:AmxxSpecial[33]
new 
cvar_only_adminscvar_flagscvar_footstepscvar_gravitycvar_speedcvar_invisiblecvar_emitcvar_showiconShowIconcvar_vampire_enablecvar_vampire_headshotcvar_vampire_genericcvar_vampire_maxhealthScreencvar_info_skype

new const v_combat[] = { "models/knife_items/Combat/v_combat-blood.mdl" }
new const 
p_combat[] = { "models/knife_items/Combat/p_combat_normal.mdl" }

new const 
g_CombatHitBody[][] = 
{
    
"knife_items/Combat/cb_hit1.wav""knife_items/Combat/cb_hit2.wav""knife_items/Combat/cb_hit3.wav",
    
"knife_items/Combat/cb_hit4.wav""knife_items/Combat/cb_hit5.wav""knife_items/Combat/cb_hit6.wav"
}

new const 
g_CombatHitWall[][] = 
{
    
"knife_items/Combat/cb_hiwl.wav""knife_items/Combat/cb_hiwl2.wav""knife_items/Combat/cb_hiwl3.wav"
}

new const 
g_CombatStab[][] = 
{
    
"knife_items/Combat/cb_sb.wav""knife_items/Combat/cb_sb2.wav""knife_items/Combat/cb_sb.wav"
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSION"{ S p @ W n } +++")
    
    
register_forward(FM_EmitSound"forward_EmitSound")
    
    
register_event("CurWeapon""Event_CurWeapon""be""1=1")
    
register_event("DeathMsg""Kill""a""1>0")
    
    
ShowIcon get_user_msgid("StatusIcon")
    
Screen get_user_msgid("ScreenFade")
    
    
set_task(90.0"info"___"b")
    
read_Cvars()
}
read_Cvars()
{
    
register_cvar(PLUGINVERSIONFCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED)

    
cvar_only_admins register_cvar("amx_sk_only_admins""1")
    
cvar_flags register_cvar("amx_sk_flags""m"
    
cvar_footsteps register_cvar("amx_sk_footsteps""1")
    
cvar_gravity register_cvar("amx_sk_gravity""0.6"
    
cvar_speed register_cvar("amx_sk_speed""350.0")
    
cvar_invisible register_cvar("amx_sk_invisible""80")
    
cvar_emit register_cvar("amx_sk_emit_enable""1")
    
cvar_showicon register_cvar("amx_sk_showicon""1")

    
cvar_vampire_enable register_cvar("amx_sk_vampire_enable""1")
    
cvar_vampire_generic register_cvar("amx_sk_vampire_genereic""30")
    
cvar_vampire_headshot register_cvar("amx_sk_vampire_headshot""70")
    
cvar_vampire_maxhealth register_cvar("amx_sk_vampire_maxhealth""250")
    
    
cvar_info_skype register_cvar("amx_sk_info_skype""aleksandar.ralf")
}
public 
plugin_cfg()
{
    
get_pcvar_string(cvar_flagsstringcharsmax(string))
    
get_pcvar_string(cvar_info_skypeskypecharsmax(skype))
}
public 
info(id)
{
    new 
players[32], num
    get_players
(playersnum"ac")
    
    for( new 
0<= numi++ )
    {
        if( 
get_pcvar_num(cvar_only_admins) ? 
        {
            
Chat(players[i], "^3(AgZone) ^4Ako iskash da iskash da poluchi knife sus specialni umeniq^1, ^4pishi na Skype^1:^3 %s ^1."skype)
        }
    }
}
public 
Event_CurWeapon(id)
{
    if( 
get_pcvar_num(cvar_only_admins) ? 
    {
        if( !(
get_user_flags(id) & read_flags(string)) ) return PLUGIN_HANDLED
    
}
    
    if( 
read_data(2) != CSW_KNIFE )
    {
        
get_user_maxspeed(id)
        
set_user_footsteps(id0)
        
set_user_gravity(id1.0)
        
set_user_rendering(id_000_0)
        
StatusIconOff(id)
        
        
AmxxSpecial[id] = false
        
return PLUGIN_HANDLED
    
}
    
    
set_user_footsteps(idget_pcvar_num(cvar_footsteps))
    
set_user_gravity(idget_pcvar_float(cvar_gravity))
    
set_user_maxspeed(idget_pcvar_float(cvar_speed))
    
set_user_rendering(idkRenderFxNone255255255kRenderTransAlphaget_pcvar_num(cvar_invisible))
    
    
set_pev(idpev_viewmodel2v_combat)
    
set_pev(idpev_weaponmodel2p_combat)
    if( 
get_pcvar_num(cvar_emit) == 1emit_sound(idCHAN_AUTO"knife_items/Combat/cb_draw.wav"1.0ATTN_NORM0PITCH_NORM)
    
StatusIconOn(id)
    
    
AmxxSpecial[id] = true
    
return PLUGIN_CONTINUE
}
public 
forward_EmitSound(idchanel, const emit[])
{
    if( !
is_user_connected(id) || !AmxxSpecial[id] ) return FMRES_IGNORED
    
    
if( get_pcvar_num(cvar_emit) != ) return FMRES_IGNORED
        
    
if( equal(emit"weapons/knife_deploy1.wav") ) return FMRES_SUPERCEDE
    
    
else if( equal(emit"weapons/knife_hit1.wav") || equal(emit"weapons/knife_hit2.wav") || equal(emit"weapons/knife_hit3.wav") || equal(emit"weapons/knife_hit4.wav") )
    {
        
emit_sound(idchanelg_CombatHitBody[random(sizeof g_CombatHitBody)], VOL_NORMATTN_NORM0PITCH_NORM)
        return 
FMRES_SUPERCEDE
    
}
    
    else if( 
equal(emit"weapons/knife_hitwall1.wav") )
    {
        
emit_sound(idchanelg_CombatHitWall[random(sizeof g_CombatHitWall)], VOL_NORMATTN_NORM0PITCH_NORM)
        return 
FMRES_SUPERCEDE
    
}
    
    else if( 
equal(emit"weapons/knife_slash1.wav") || equal(emit"weapons/knife_slash2.wav") )
    {
        
emit_sound(idchanel"knife_items/Combat/cb_mis.wav"VOL_NORMATTN_NORM0PITCH_NORM)
        return 
FMRES_SUPERCEDE
    
}
    
    if( 
equal(emit"weapons/knife_stab.wav") )
    {
        
emit_sound(idchanelg_CombatStab[random(sizeof g_CombatStab)], VOL_NORMATTN_NORM0PITCH_NORM)
        return 
FMRES_SUPERCEDE
    
}
    
    return 
FMRES_IGNORED
}
public 
Kill()
{
    new 
attacker read_data(1), victim read_data(2), headshot read_data(3)
    
    if( 
AmxxSpecial[attacker] && (get_pcvar_num(cvar_vampire_enable) ? 0) )
    {
        
StatusIconOff(attacker)
        
        new 
Weapon[20]
        
read_data(4Weaponcharsmax(Weapon))
        
        if( 
equal(Weapon"knife") && (attacker != victim) )
        {
            static 
maxhpheadgeneric
            maxhp 
get_pcvar_num(cvar_vampire_maxhealth)
            
head get_pcvar_num(cvar_vampire_headshot)
            
generic get_pcvar_num(cvar_vampire_generic)
            
            if( 
get_user_health(attacker) >= maxhp )
            {
                
set_user_health(attackermaxhp)
                return 
            }
            
            
ShowScreenFading(attacker)
            
client_cmd(attacker"spk knife_items/Combat/cb_s_health_b")
            
set_dhudmessage(127255255, -1.00.1501.01.00.10.1false)
            
            if( !
headshot )
            {
                
set_user_health(attackerget_user_health(attacker) + generic)
                
show_dhudmessage(attacker"Healed +%d hp"generic)
            } else {
                
set_user_health(attackerget_user_health(attacker) + generic)
                
show_dhudmessage(attacker"Healed +%d hp"head)                
            }
        }
    }
}
StatusIconOn(id)
{
    
message_beginMSG_ONEShowIcon_id )
    
write_byteget_pcvar_num(cvar_showicon) ) // 0 - off | 1 - On | 2 - Flash
    
write_string"dmg_shock" //hud
    
write_byte127 //red
    
write_byte255 //green
    
write_byte255 //blue
    
message_end( )
}
StatusIconOff(id)
{
    
message_beginMSG_ONEShowIcon_id )
    
write_byte// 0 - off | 1 - On | 2 - Flash
    
write_string"dmg_shock" //hud
    
message_end( )
}
ShowScreenFading(id)
{
    
message_beginMSG_ONEScreen_id )
    
write_short1<<10 )
    
write_short1<<10 )
    
write_short0x0000 )
    
write_byte//red
    
write_byte//green
    
write_byte200 //blue
    
write_byte75 //brightness
    
message_end()    
}
public 
plugin_precache()
{
    new 
index
    
    precache_model
(v_combat)
    
precache_model(p_combat)
    
    
precache_sound("knife_items/Combat/cb_draw.wav")
    
precache_sound("knife_items/Combat/cb_mis.wav")
    
precache_sound("knife_items/Combat/cb_s_health_b.wav")
    
    for( 
index 0index sizeof g_CombatHitBodyindex++ )
        
precache_sound(g_CombatHitBody[index])
        
    for( 
index 0index sizeof g_CombatHitWallindex++ )
        
precache_sound(g_CombatHitWall[index])
        
    for( 
index 0index sizeof g_CombatStabindex++ )
        
precache_sound(g_CombatStab[index])

just edit
7thSense is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 10-19-2016 , 09:22   Re: [REQ] Vip menu knife
Reply With Quote #3

That Plugin dont work for a Knife Server :/ testet it -

Last edited by Godofwar; 10-19-2016 at 10:09.
Godofwar 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 19:08.


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