User
Pass
2FA
 
 

[CERERE] VIP/PLAYER MENU

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support
Author Message2272
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 04-11-2018, 06:11:08 | Translate post to: ... (Click for more languages)

Nume: VIP/PLAYER MENU
Descriere plugin: Sa contina un meniu pentru vip si unul pentru playeri
Alte detalii: Sa fie pentru server classic nu fury . Adica sa aiba acces si T si CT la el
Exemplu:
1: Arme Playeri
2: Arme VIP

Arme player - sa fie arme classice ...
SI IN ARME VIP SA GASESC nu stiu BAZOOKA SAU BARLOG SAU nu stiu ARME DE GENU

PS : CVa rog ajutatima ca, caut acest plugin de 1 luna -

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 06-11-2018, 12:51:14 | Translate post to: ... (Click for more languages)

E gandit pentru furien dar am pus sa apara meniul si la Terro si la CT. Modelele pentru gold ak si gold m4 le cauti tu pe google. Vezi daca merge. Nu am testat.
Incearca asta :


Code:
/*=================*| Furien Weapons Menu |*==================*/
 
/*=================*| Librariile Pluginului |*==================*/
 
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
 
/*=================*| Descrierea Pluginului |*==================*/
 
#define PLUGIN "Arme Furien"
#define VERSION "Alpha"
#define AUTHOR "dRaGoNeLy"
 
/*=================*| ID Armele Golden |*==================*/
 
#define CSW_GM4A1 CSW_M4A1
#define CSW_GAK47 CSW_AK47
 
/*=================*| Flagul V.I.P |*==================*/
 
#define ADMIN_VIP ADMIN_LEVEL_H
 
/*=================*| Bool Pluginului |*==================*/
 
new bool:GoldenM4A1[33];
new bool:GoldenAK47[33];
 
/*=================*| Modelele Armelor |*==================*/
 
new V_GM4A1[66] = "models/v_golden_m4a1.mdl";
new V_GAK47[66] = "models/v_golden_ak47.mdl";
new P_GM4A1[66] = "models/p_golden_m4a1.mdl";
new P_GAK47[66] = "models/p_golden_ak47.mdl";
 
/*=================*| Baza Pluginului |*==================*/
 
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
        RegisterHam(Ham_Spawn,"player","ClCmdHamRound",1)
        register_event("CurWeapon", "EventGoldenM4A1", "be", "1=1")
        register_event("CurWeapon", "EventGoldenAK47", "be", "1=1")
}
 
/*=================*| Inregistrarea Modelelor |*==================*/
 
public plugin_precache()
{
        precache_model(V_GM4A1)
        precache_model(V_GAK47)
        precache_model(P_GM4A1)
        precache_model(P_GAK47)
}
 
/*=================*| Deschiderea Meniului |*==================*/
 
public ClCmdHamRound(id)
        if(get_user_team(id) == 1 && get_user_team(id) == 2)
{
        ClCmdWeapons(id);
        GoldenM4A1[id] = false;
        GoldenAK47[id] = false;
}
 
/*=================*| Eventul Golden M4A1 |*==================*/
 
public EventGoldenM4A1(id)
{
        if(get_user_weapon(id) == CSW_GM4A1 && GoldenM4A1[id])
        {
                set_pev(id, pev_viewmodel2, V_GM4A1)
                set_pev(id, pev_weaponmodel2, P_GM4A1)
        }
}
 
/*=================*| Eventul Golden AK47 |*==================*/
 
public EventGoldenAK47(id)
{
        if(get_user_weapon(id) == CSW_GAK47 && GoldenAK47[id])
        {
                set_pev(id, pev_viewmodel2, V_GAK47)
                set_pev(id, pev_weaponmodel2, P_GAK47)
        }
}
 
/*=================*| Meniul De Arme |*==================*/
 
public ClCmdWeapons(id)
{
        new wpnMenu = menu_create("\\\\\\\\rWeapons \\\\\\\\yMenu", "ClCmdWeaponsHandler");
       
        menu_additem(wpnMenu, "M4A1 \\\\\\\\y[\\\\\\\\r Player \\\\\\\\y]", "1");
        menu_additem(wpnMenu, "AK47 \\\\\\\\y[\\\\\\\\r Player \\\\\\\\y]^n", "2");
       
        if(get_user_flags(id) & ADMIN_VIP)
        {
                menu_additem(wpnMenu, "Golden M4A1 \\\\\\\\y[\\\\\\\\r VIP \\\\\\\\y]", "3");
                menu_additem(wpnMenu, "Golden AK47 \\\\\\\\y[\\\\\\\\r VIP \\\\\\\\y]", "4");
        }
        else
        {
                menu_additem(wpnMenu, "Golden M4A1 \\\\\\\\y[\\\\\\\\d VIP \\\\\\\\y]", "3");
                menu_additem(wpnMenu, "Golden AK47 \\\\\\\\y[\\\\\\\\d VIP \\\\\\\\y]", "4");
        }
       
        menu_setprop(wpnMenu, MPROP_EXIT, MEXIT_ALL);
        menu_display(id, wpnMenu, 0);
       
        return 1;
}
 
/*=================*| Raspunderea Meniului |*==================*/
 
public ClCmdWeaponsHandler(id, wpnMenu, item)
{
        if(item == MENU_EXIT)
        {
                menu_destroy (wpnMenu);
                return 1;
        }
       
        switch (item) 
        {
                case 0:
                {
                        fm_strip_user_weapons(id);
                        fm_give_item(id, "weapon_m4a1");
                        fm_give_item(id, "weapon_deagle");
                        fm_give_item(id, "weapon_knife");
                        cs_set_user_bpammo(id, CSW_M4A1, 9999);
                        cs_set_user_bpammo(id, CSW_DEAGLE, 9999);
                        GoldenM4A1[id] = false;
                        GoldenAK47[id] = false;
                }
                case 1:
                {
                        fm_strip_user_weapons(id);
                        fm_give_item(id, "weapon_ak47");
                        fm_give_item(id, "weapon_deagle");
                        fm_give_item(id, "weapon_knife");
                        cs_set_user_bpammo(id, CSW_AK47, 9999);
                        cs_set_user_bpammo(id, CSW_DEAGLE, 9999);
                        GoldenM4A1[id] = false;
                        GoldenAK47[id] = false;
                }
                case 2:
                {
                        if(get_user_flags(id) & ADMIN_VIP)
                        {
                                fm_strip_user_weapons(id);
                                fm_give_item(id, "weapon_m4a1");
                                cs_set_user_bpammo(id, CSW_M4A1, 9999);
                                EventGoldenM4A1(id)
                                fm_give_item(id, "weapon_deagle");
                                cs_set_user_bpammo(id, CSW_DEAGLE, 9999);
                                GoldenM4A1[id] = true;
                                GoldenAK47[id] = false;
                        }
                        else
                        {
                                client_print(id, print_chat, "[VIP] Doar Pentru VIP!")
                                ClCmdWeapons(id);
                               
                        }
                       
                }
                case 3:
                {
                        if(get_user_flags(id) & ADMIN_VIP)
                        {
                                fm_strip_user_weapons(id);
                                fm_give_item(id, "weapon_ak47");
                                cs_set_user_bpammo(id, CSW_AK47, 9999);
                                EventGoldenAK47(id)
                                fm_give_item(id, "weapon_deagle");
                                cs_set_user_bpammo(id, CSW_DEAGLE, 9999);
                                GoldenM4A1[id] = false;
                                GoldenAK47[id] = true;
                        }
                        else
                        {
                                client_print(id, print_chat, "[VIP] Doar Pentru VIP!")
                                ClCmdWeapons(id);
                        }
                       
                }
        }
        menu_destroy (wpnMenu);
        return 1;
}

0 0
  
Back to top
View user's profile Send private message
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 08-11-2018, 06:01:20 | Translate post to: ... (Click for more languages)

Am adaugat plugin dar nu deschide meniul ...
Adica cand intru la joc numi apare nici un meniu ...

0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 09-11-2018, 10:59:14 | Translate post to: ... (Click for more languages)

Vezi asA :

Code:
/*=================*| Furien Weapons Menu |*==================*/
 
/*=================*| Librariile Pluginului |*==================*/
 
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
 
/*=================*| Descrierea Pluginului |*==================*/
 
#define PLUGIN "Arme Furien"
#define VERSION "Alpha"
#define AUTHOR "dRaGoNeLy"
 
/*=================*| ID Armele Golden |*==================*/
 
#define CSW_GM4A1 CSW_M4A1
#define CSW_GAK47 CSW_AK47
 
/*=================*| Flagul V.I.P |*==================*/
 
#define ADMIN_VIP ADMIN_LEVEL_H
 
/*=================*| Bool Pluginului |*==================*/
 
new bool:GoldenM4A1[33];
new bool:GoldenAK47[33];
 
/*=================*| Modelele Armelor |*==================*/
 
new V_GM4A1[66] = "models/v_golden_m4a1.mdl";
new V_GAK47[66] = "models/v_golden_ak47.mdl";
new P_GM4A1[66] = "models/p_golden_m4a1.mdl";
new P_GAK47[66] = "models/p_golden_ak47.mdl";
 
/*=================*| Baza Pluginului |*==================*/
 
public plugin_init()
{
        register_plugin(PLUGIN, VERSION, AUTHOR)
        RegisterHam(Ham_Spawn,"player","ClCmdHamRound",1)
        register_event("CurWeapon", "EventGoldenM4A1", "be", "1=1")
        register_event("CurWeapon", "EventGoldenAK47", "be", "1=1")
}
 
/*=================*| Inregistrarea Modelelor |*==================*/
 
public plugin_precache()
{
        precache_model(V_GM4A1)
        precache_model(V_GAK47)
        precache_model(P_GM4A1)
        precache_model(P_GAK47)
}
 
/*=================*| Deschiderea Meniului |*==================*/
 
public ClCmdHamRound(id)
   if(is_user_alive(id))
{
        ClCmdWeapons(id);
        GoldenM4A1[id] = false;
        GoldenAK47[id] = false;
}
 
/*=================*| Eventul Golden M4A1 |*==================*/
 
public EventGoldenM4A1(id)
{
        if(get_user_weapon(id) == CSW_GM4A1 && GoldenM4A1[id])
        {
                set_pev(id, pev_viewmodel2, V_GM4A1)
                set_pev(id, pev_weaponmodel2, P_GM4A1)
        }
}
 
/*=================*| Eventul Golden AK47 |*==================*/
 
public EventGoldenAK47(id)
{
        if(get_user_weapon(id) == CSW_GAK47 && GoldenAK47[id])
        {
                set_pev(id, pev_viewmodel2, V_GAK47)
                set_pev(id, pev_weaponmodel2, P_GAK47)
        }
}
 
/*=================*| Meniul De Arme |*==================*/
 
public ClCmdWeapons(id)
{
        new wpnMenu = menu_create("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\rWeapons \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\yMenu", "ClCmdWeaponsHandler");
       
        menu_additem(wpnMenu, "M4A1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r Player \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "1");
        menu_additem(wpnMenu, "AK47 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r Player \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]^n", "2");
       
        if(get_user_flags(id) & ADMIN_VIP)
        {
                menu_additem(wpnMenu, "Golden M4A1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r VIP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "3");
                menu_additem(wpnMenu, "Golden AK47 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r VIP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "4");
        }
        else
        {
                menu_additem(wpnMenu, "Golden M4A1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\d VIP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "3");
                menu_additem(wpnMenu, "Golden AK47 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\d VIP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "4");
        }
       
        menu_setprop(wpnMenu, MPROP_EXIT, MEXIT_ALL);
        menu_display(id, wpnMenu, 0);
       
        return 1;
}
 
/*=================*| Raspunderea Meniului |*==================*/
 
public ClCmdWeaponsHandler(id, wpnMenu, item)
{
        if(item == MENU_EXIT)
        {
                menu_destroy (wpnMenu);
                return 1;
        }
       
        switch (item) 
        {
                case 0:
                {
                        fm_strip_user_weapons(id);
                        fm_give_item(id, "weapon_m4a1");
                        fm_give_item(id, "weapon_deagle");
                        fm_give_item(id, "weapon_knife");
                        cs_set_user_bpammo(id, CSW_M4A1, 9999);
                        cs_set_user_bpammo(id, CSW_DEAGLE, 9999);
                        GoldenM4A1[id] = false;
                        GoldenAK47[id] = false;
                }
                case 1:
                {
                        fm_strip_user_weapons(id);
                        fm_give_item(id, "weapon_ak47");
                        fm_give_item(id, "weapon_deagle");
                        fm_give_item(id, "weapon_knife");
                        cs_set_user_bpammo(id, CSW_AK47, 9999);
                        cs_set_user_bpammo(id, CSW_DEAGLE, 9999);
                        GoldenM4A1[id] = false;
                        GoldenAK47[id] = false;
                }
                case 2:
                {
                        if(get_user_flags(id) & ADMIN_VIP)
                        {
                                fm_strip_user_weapons(id);
                                fm_give_item(id, "weapon_m4a1");
                                cs_set_user_bpammo(id, CSW_M4A1, 9999);
                                EventGoldenM4A1(id)
                                fm_give_item(id, "weapon_deagle");
                                cs_set_user_bpammo(id, CSW_DEAGLE, 9999);
                                GoldenM4A1[id] = true;
                                GoldenAK47[id] = false;
                        }
                        else
                        {
                                client_print(id, print_chat, "[VIP] Doar Pentru VIP!")
                                ClCmdWeapons(id);
                               
                        }
                       
                }
                case 3:
                {
                        if(get_user_flags(id) & ADMIN_VIP)
                        {
                                fm_strip_user_weapons(id);
                                fm_give_item(id, "weapon_ak47");
                                cs_set_user_bpammo(id, CSW_AK47, 9999);
                                EventGoldenAK47(id)
                                fm_give_item(id, "weapon_deagle");
                                cs_set_user_bpammo(id, CSW_DEAGLE, 9999);
                                GoldenM4A1[id] = false;
                                GoldenAK47[id] = true;
                        }
                        else
                        {
                                client_print(id, print_chat, "[VIP] Doar Pentru VIP!")
                                ClCmdWeapons(id);
                        }
                       
                }
        }
        menu_destroy (wpnMenu);
        return 1;
}

0 0
  
Back to top
View user's profile Send private message
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 09-11-2018, 13:44:02 | Translate post to: ... (Click for more languages)

Cum pot adauga o comanda pentru a deschide meniul ?
0 0
  
Back to top
View user's profile Send private message
InLoveCs

[00 11 00]



Status: Offline
(since 24-12-2021 07:55)
Joined: 11 Jan 2011
Posts: 8224, Topics: 738
Location: zmx.freakz.ro

Reputation: 2926.8
Votes: 170

     
Post Posted: 09-11-2018, 17:29:47 | Translate post to: ... (Click for more languages)

Pana la urma functioneaza,apare meniul la inceput de runda ?
0 0
  
Back to top
View user's profile Send private message
kmking

[Mentally Stable]



Status: Offline
(since 08-02-2019 04:11)
Joined: 04 Nov 2018
Posts: 25, Topics: 9
Location: Germany

Reputation: 6.8

Post Posted: 09-11-2018, 17:34:08 | Translate post to: ... (Click for more languages)

Da apare , atat ca aici erau facute aiurea

new wpnMenu = menu_create("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\rWeapons \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\yMenu", "ClCmdWeaponsHandler");

menu_additem(wpnMenu, "M4A1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r Player \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "1");
menu_additem(wpnMenu, "AK47 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r Player \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]^n", "2");

if(get_user_flags(id) & ADMIN_VIP)
{
menu_additem(wpnMenu, "Golden M4A1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r VIP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "3");
menu_additem(wpnMenu, "Golden AK47 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r VIP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "4");
}
else
{
menu_additem(wpnMenu, "Golden M4A1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\d VIP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "3");
menu_additem(wpnMenu, "Golden AK47 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\d VIP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\y]", "4");

Aparea meniu urat ...
Dar lam modificat eu -

0 0
  
Back to top
View user's profile Send private message

  Topic locked


Topic is closed, you cannot post any messages in it anymore

Locked by InLoveCs, 09 November 2018 18:17



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Plugins - Help / Support  


The time now is 29-03-2024, 04:09:57
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x