Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[OSC]V.I.P Menu v1.0


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Hello everyone !

Presentation of plugin :

There is my first plugin, simple but usefull, created for my team : Old School Css
and i wanna get a vipmenu that you can config your menu by selecting an option like "Bhop command" that execute !bhop in chat. It work aswell atleast, but it's not perfect, So I try to make a v2 of this plugin with the benefits listed below. PS: I am French, I thank you for being indulgent on my English :)
Works on which games ?

I tested it only on Counter Strike Source, but i don't know why it will not work on others Source games, just notice me below on which games my plug aren't supported and i will try to fix it :)
How to Install :
  • Download .rar of your languages
  • Put OSCVipMenu.smx into addons/sourcemod/plugins
  • Put OSCVipMenu.sp into addons/sourcemod/scriptings (Required for compile ;) )
How to config commands and names of menus
  • Open OSCVipMenu.sp with any text editors
  • You will have this code :
    Code:

    #include <sourcemod>

    public Plugin:myinfo =
    {
            name = "-=OSC=-VipMenu",
            author = "Old School Css Scripters",
            description = "<- Our first Official Team Plugin ->",
            version = "1.0",
            url = "<- Coming Soon ->"
    }

    public OnPluginStart()
    {
            RegAdminCmd("sm_vip", Afficher_Menu_event, ADMFLAG_CUSTOM1, "Afficher menu vip");
    }

    public Action:Timer_Announce(Handle:timer, any:user)
    {
            new client = GetClientOfUserId(user);
            if (client !=0 && IsClientConnected(client) && IsClientInGame(client))
            {
                    PrintToChat(client, "\x04[\x03OSC\x04]: Ce serveur utilise \x05-=OSC=- Vip Menu\x01! Par Old School Css !");
            }
    }

    public Action:Afficher_Menu_event (client, args)
    {
            new Handle:menu = CreateMenu(Afficher_Menu_evenement);
            SetMenuTitle(menu, "OSC VipMenu");
            AddMenuItem(menu, "option 1", "Commande BHOP");
            AddMenuItem(menu, "option 2", "Commande Skins");
            AddMenuItem(menu, "option 3", "Commande d'options generale");
            AddMenuItem(menu, "option 4", "Commande Avantages");
            AddMenuItem(menu, "option 5", "Commande Respawn");
            AddMenuItem(menu, "option 6", "Commande !Trails");
            AddMenuItem(menu, "option 7", "Commande !Givecash");
            SetMenuExitButton(menu, true);
            DisplayMenu(menu, client, MENU_TIME_FOREVER);
    }

    public Afficher_Menu_evenement(Handle:menu, MenuAction:action, client, itemNum)
    {
            if( action == MenuAction_Select )
            {
                    switch (itemNum)
                    {
                            case 0 : ClientCommand(client, "sm_bhop");
                           
                            case 1 : ClientCommand(client, "sm_models");
                           
                            case 2 : ClientCommand(client, "sm_settings");
                           
                            case 3 : ClientCommand(client, "sm_vipmenu");
                           
                            case 4 : ClientCommand(client, "sm_vipspawn");
                           
                            case 5 : PrintToChat(client, "[OSC]A venir ! Taper !Trails pour ouvrir le menu de trails");
                           
                            case 6 : PrintToChat(client, "[OSC]A venir ! Taper !Givecash pour ouvrir le menu de dons");
                    }
            }
    }

    Change as you want :) Add infinite lines and case Check Here and Here if your a beginner into scripting !
Benefits :

  • Ability to change the name of the orders and their actions into a cfg file
  • Display in the chat the name of the command carried out with mark enable / off against the chosen command (for a command like! bhop which directly activates the command)
  • And many other functions to come
Commands :
  • !vip
  • /vip
  • sm_vip
CVars :
  • No CVars At The Moments
Includes :
  • No includes needed for the moment
Languages for Configs help:
  • French
  • English

Attached Files
File Type: 7z OSCVipMenu-ENGLISH.7z (6.2 KB)
File Type: 7z OSCVipMenu - FRENCH.7z (6.2 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...