Raised This Month: $ Target: $400
 0% 

[CSGO] Vip Plugin how to make it do the command-


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krotis
Senior Member
Join Date: Aug 2012
Old 06-30-2015 , 14:56   [CSGO] Vip Plugin how to make it do the command-
Reply With Quote #1

Hello! Im looking for some help with my VIP menu.
When I choose something from the menu it doesnt execute the command and nothing shows up

PHP Code:
    public Plugin:myinfo 
    {
        
name "vipmenu",
        
author "GameOnline.nu",
    }

public 
OnPluginStart()
{
    
RegAdminCmd("sm_vip"Panel_VipADMFLAG_CUSTOM2"Opens the VIP Menu");
    
RegAdminCmd("sm_vipmenu"Panel_VipADMFLAG_CUSTOM2"Opens the VIP Menu");
}
 
public 
MenuHandler(Handle:menuMenuAction:actionparam1param2) {
    if (
action == MenuAction_Select)
       { if(
param2 == 1) {
            
FakeClientCommand(param1"say /trails");
        } else if(
param2 == 2) {
            
FakeClientCommand(param1"sm_hats");
        } else if(
param2 == 3) {
            
FakeClientCommand(param1"say !ws");
        } else if(
param2 == 4) {
            
FakeClientCommand(param1"sm_knife");
        } else if(
action == MenuAction_Cancel) {
        
CloseHandle(menu);
        }
    }
}

public 
Action:Panel_Vip(clientargs) {
    new 
Handle:menu CreateMenu(MenuHandler);
    
SetMenuTitle(menu"VIP Menu");
    
AddMenuItem(menu"trails""Trails");
    
AddMenuItem(menu"hats""Hats");
    
AddMenuItem(menu"skins""Skins");
    
AddMenuItem(menu"knife""Knife");
    
SetMenuExitButton(menutrue);
    
DisplayMenu(menuclient20);
    
    
CloseHandle(menu);
    
    return 
Plugin_Handled;

Krotis is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 06-30-2015 , 15:10   Re: [CSGO] Vip Plugin how to make it do the command-
Reply With Quote #2

Do not create multiple posts for the same issue. Doing so violates forum rules (https://forums.alliedmods.net/misc.php?do=showrules) and continued violations are a good way to get banned.

Regarding: https://forums.alliedmods.net/showthread.php?t=265351
__________________

Last edited by ThatOneGuy; 06-30-2015 at 15:11.
ThatOneGuy 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 05:15.


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