Jump to content
Sign in to follow this  
bRaT

cerere plugin vip

Recommended Posts

1.[Model Cerere Plugin]: plugin vip
 Nick: bRaT
 Nume Plugin dorit:plugin vip
 Descriere:

T sapwn :

la spawn teroristii sa aibe 
AK47 + deagle + set granade!

150 HP / AP

CT Spawn :

la spawn anti-teroristii sa aibe

M4A1 + Deagle + set grenade

150 HP / AP

la ambel echipe sa aibe :

BunnyHop

Jump x2

15 HP - pe HS

10 - pe kill normal !
 Contact(skype/ts/facebook/forum): petrescu.ciprian6 skype

Share this post


Link to post
Share on other sites

Ti-am facut si vIP prefix in tab 

Quote

#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fun>
#include <hamsandwich>

#define FL_ONGROUND (1<<9)
#define FL_WATERJUMP (1<<11)

forward amxbans_admin_connect(id);

new CsArmorType:armortype, bool:g_Vip[33], skoki[33], weapon_id;

public plugin_init(){
    register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
    register_forward(FM_CmdStart, "CmdStartPre");
    RegisterHam(Ham_Spawn, "player", "SpawnedEventPre", 1);
    register_message(get_user_msgid("SayText"),"handleSayText");
}
public client_authorized(id){
    if(get_user_flags(id) & 524288 == 524288){
        client_authorized_vip(id);
    }
}
public client_authorized_vip(id){
    g_Vip[id]=true;
}
public client_disconnect(id){
    if(g_Vip[id]){
        client_disconnect_vip(id);
    }
}
public client_disconnect_vip(id){
    g_Vip[id]=false;
}
public CmdStartPre(id, uc_handle){
    if(g_Vip[id]){
        if(is_user_alive(id)){
            CmdStartPreVip(id, uc_handle);
        }
    }
}
public CmdStartPreVip(id, uc_handle){
    new flags = pev(id, pev_flags);
    if((get_uc(uc_handle, UC_Buttons) & IN_JUMP) && !(flags & FL_ONGROUND) && !(pev(id, pev_oldbuttons) & IN_JUMP) && skoki[id]>0){
        --skoki[id];
        new Float:velocity[3];
        pev(id, pev_velocity,velocity);
        velocity[2] = random_float(265.0,285.0);
        set_pev(id,pev_velocity,velocity);
    } else if(flags & FL_ONGROUND && skoki[id]!=-1){
        skoki[id] = 1;
    }
}
public SpawnedEventPre(id){
    if(g_Vip[id]){
        if(is_user_alive(id)){
            SpawnedEventPreVip(id);
        }
    }
}
public SpawnedEventPreVip(id){
    skoki[id]=1;
    set_user_health(id, get_user_health(id)+50);
    cs_set_user_armor(id, min(cs_get_user_armor(id,armortype)+50, 200), armortype);
    new henum=(user_has_weapon(id,CSW_HEGRENADE)?cs_get_user_bpammo(id,CSW_HEGRENADE):0);
    give_item(id, "weapon_hegrenade");
    ++henum;
    new fbnum=(user_has_weapon(id,CSW_FLASHBANG)?cs_get_user_bpammo(id,CSW_FLASHBANG):0);
    give_item(id, "weapon_flashbang");
    ++fbnum;
    new sgnum=(user_has_weapon(id,CSW_SMOKEGRENADE)?cs_get_user_bpammo(id,CSW_SMOKEGRENADE):0);
    give_item(id, "weapon_smokegrenade");
    ++sgnum;
    if(get_pdata_cbase(id, 369)==-1){
        give_item(id, "weapon_deagle");
        give_item(id, "ammo_50ae");
        weapon_id=find_ent_by_owner(-1, "weapon_deagle", id);
        if(weapon_id)cs_set_weapon_ammo(weapon_id, 7);
        cs_set_user_bpammo(id, CSW_DEAGLE, 35);
    }
    if(get_pdata_cbase(id, 368)==-1){
        if(get_user_team(id)==1){
            give_item(id, "weapon_ak47");
            give_item(id, "ammo_762nato");
            weapon_id=find_ent_by_owner(-1, "weapon_ak47", id);
            if(weapon_id)cs_set_weapon_ammo(weapon_id, 30);
            cs_set_user_bpammo(id, CSW_AK47, 90);
        }
        if(get_user_team(id)==2){
            give_item(id, "weapon_m4a1");
            give_item(id, "ammo_556nato");
            weapon_id=find_ent_by_owner(-1, "weapon_m4a1", id);
            if(weapon_id)cs_set_weapon_ammo(weapon_id, 30);
            cs_set_user_bpammo(id, CSW_M4A1, 90);
        }
    }
}
public handleSayText(msgId,msgDest,msgEnt){
    new id = get_msg_arg_int(1);
    
    if(is_user_connected(id) && g_Vip[id]){
        new szTmp[256],szTmp2[256];
        get_msg_arg_string(2,szTmp, charsmax(szTmp))
        
        new szPrefix[64] = "^x04[VIP]";
        
        if(!equal(szTmp,"#Cstrike_Chat_All")){
            add(szTmp2,charsmax(szTmp2),szPrefix);
            add(szTmp2,charsmax(szTmp2)," ");
            add(szTmp2,charsmax(szTmp2),szTmp);
        }
        else{
            add(szTmp2,charsmax(szTmp2),szPrefix);
            add(szTmp2,charsmax(szTmp2),"^x03 %s1^x01 :  %s2");
        }
        set_msg_arg_string(2,szTmp2);
    }
    return PLUGIN_CONTINUE;
}
public client_PreThink(id){
    if(g_Vip[id] && is_user_alive(id)){
        client_PreThinkVip(id);
    }
}
public client_PreThinkVip(id){
    entity_set_float(id, EV_FL_fuser2, 0.0);
    
    if(entity_get_int(id, EV_INT_button) & 2){
        new flags = entity_get_int(id, EV_INT_flags);
        
        if(flags & FL_WATERJUMP || entity_get_int(id, EV_INT_waterlevel) >= 2 || !(flags & FL_ONGROUND)){
            return PLUGIN_CONTINUE;
        }
        new Float:velocity[3];
        entity_get_vector(id, EV_VEC_velocity, velocity);
        
        velocity[2] += 250.0;
        entity_set_vector(id, EV_VEC_velocity, velocity);
        
        entity_set_int(id, EV_INT_gaitsequence, 6);
    }
    return PLUGIN_CONTINUE;
}
public amxbans_admin_connect(id){
    client_authorized(id);
}

 

Share this post


Link to post
Share on other sites

da e bun dar mai vreau cv cand scrie cineva /vip sa apara beneficile vip si pretul

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×