AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Need Vip plugin awp+deagle (https://forums.alliedmods.net/showthread.php?t=173960)

NATRE 12-13-2011 10:24

Need Vip plugin awp+deagle
 
Hi All!
Can somebody give me VIP plugin when are AK+Deagle M4+Deagle and AWP+Deagle choose? I can't find that in forum.
TnQ.

Ex1ne 12-13-2011 11:52

Re: Need Vip plugin awp+deagle
 
At round start it shows a menu that says "Ak47 - Deagle", "M4A1 - deagle" and "Awp - Deagle"? I could make that.

Larcyn 12-13-2011 11:54

Re: Need Vip plugin awp+deagle
 
Quote:

Originally Posted by Ex1ne (Post 1612499)
At round start it shows a menu that says "Ak47 - Deagle", "M4A1 - deagle" and "Awp - Deagle"? I could make that.

He is requesting a VIP menu, that means you need to block it for some people that isn't VIP. You need more information to complete this request.

Ex1ne 12-14-2011 16:13

Re: Need Vip plugin awp+deagle
 
Well, i just made it anyways :P


/Description\
This plugin makes it so if have the H flag (can be changed) a menu pops up
in three seconds of the round start. In the menu there is "M4A1 - Deagle", "AK47 - Deagle" and "AWP - Deagle".
If you press for example "M4A1 - Deagle" You will get a m4a1 and a deagle.

Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <cstrike>

public plugin_init()
{
        register_plugin("VIPGunmenu", "0.1", "Ex1ne")
        RegisterHam(Ham_Spawn, "player", "Fwd_PlayerSpawn_Post", 1);
}

public Fwd_PlayerSpawn_Post(id)
{
        if(!(get_user_flags(id) & ADMIN_LEVEL_H))
        {
                return PLUGIN_HANDLED
        }
        set_task(3.0, "VipMenu", id)
        return PLUGIN_CONTINUE
}
public VipMenu(id)
{
        new szText[555 char]
        formatex(szText, charsmax(szText), "\yVIP-Menu!")
        new VipMenu = menu_create(szText, "VipMenuHandle")
       
        formatex(szText, charsmax(szText), "\rM4A1 + Deagle.")
        menu_additem(VipMenu, szText, "1", 0)
        formatex(szText, charsmax(szText), "\rAK47 + Deagle.")
        menu_additem(VipMenu, szText, "2", 0)
        formatex(szText, charsmax(szText), "\rAWP + Deagle.")
        menu_additem(VipMenu, szText, "3", 0)
       
        menu_setprop(VipMenu, MPROP_EXIT, MEXIT_ALL)
        menu_display(id, VipMenu, 0)
       
        return PLUGIN_HANDLED
}

public VipMenuHandle(id, menu, item)
{
        if(item == MENU_EXIT)
        {
                menu_destroy(menu)
                return PLUGIN_HANDLED
        }
        new data[6], iName[64], access, callback
        menu_item_getinfo(menu, item, access, data, charsmax(data), iName, charsmax(iName), callback )
        new key = str_to_num(data)
       
        switch(key)
        {
                case 1: HandleM4Menu(id)
                case 2: HandleAKMenu(id)
                case 3: HandleAwpMenu(id)
        }
        return PLUGIN_HANDLED
}

public HandleM4Menu(id)
{
        if(!is_user_alive(id))
        {
                return PLUGIN_HANDLED
        }
        give_item(id, "weapon_m4a1")
        give_item(id, "weapon_deagle")
        cs_set_user_bpammo(id, CSW_M4A1, 90)
        cs_set_user_bpammo(id, CSW_DEAGLE, 35)
        return PLUGIN_HANDLED
}

public HandleAKMenu(id)
{
        if(!is_user_alive(id))
        {
                return PLUGIN_HANDLED
        }
        give_item(id, "weapon_ak47")
        give_item(id, "weapon_deagle")
        cs_set_user_bpammo(id, CSW_AK47, 90)
        cs_set_user_bpammo(id, CSW_DEAGLE, 35)
        return PLUGIN_HANDLED
}

public HandleAwpMenu(id)
{
        if(!is_user_alive(id))
        {
                return PLUGIN_HANDLED
        }
        give_item(id, "weapon_awp")
        give_item(id, "weapon_deagle")
        cs_set_user_bpammo(id, CSW_AWP, 30)
        cs_set_user_bpammo(id, CSW_DEAGLE, 35)
        return PLUGIN_HANDLED
}


tembeluu 02-08-2019 13:01

Re: Need Vip plugin awp+deagle
 
Can someone help me with this ? The plugin works fine. Which is the issues..If i choise an weapon from menu (1 ,2 or 3) and if I already have one, is not dropped ..so i can have more weapons..i don't want that! to be normal (knife, gun , weapon , no more.)! so if i choise from menu , and i got one in my hands i want to be dropped automatically, to be replaced with what i choise.

iceeedr 02-08-2019 13:41

Re: Need Vip plugin awp+deagle
 
If laziness killed, you certainly would not be with us any more. There are so many plugins of vip menu in this forum that I do not even know which link to send you, even has 2 recent (2 days) in this same sub-forum.

tembeluu 02-08-2019 15:14

Re: Need Vip plugin awp+deagle
 
i really wanted to post, about an plugin VIP. just ak47+deagle , m4a1 + deagle , awp + deagle .but i just found this post, very old.. and i thought cause someone can help me with this is it already done and..i didn't see something like this, i mean how i want.

Nutu_ 02-08-2019 15:46

Re: Need Vip plugin awp+deagle
 
add strip user weapon before giving items

tembeluu 02-08-2019 16:13

Re: Need Vip plugin awp+deagle
 
Quote:

Originally Posted by Nutu_ (Post 2638725)
add strip user weapon before giving items

i got no clue about what are u talking about...

Nutu_ 02-08-2019 16:17

Re: Need Vip plugin awp+deagle
 
PHP Code:

public HandleM4Menu(id)
{
    if(!
is_user_alive(id)){
        return 
PLUGIN_HANDLED
    
}
    
strip_user_weapons(id)
    
give_item(id"weapon_m4a1")
    
give_item(id"weapon_deagle")
    
cs_set_user_bpammo(idCSW_M4A190)
    
cs_set_user_bpammo(idCSW_DEAGLE35)
    return 
PLUGIN_HANDLED


search, check other sources, you won't learn anything by asking for this small thing!


All times are GMT -4. The time now is 20:52.

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