Raised This Month: $51 Target: $400
 12% 

Simple CS:GO Jailbreak vip plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jackkkk
Junior Member
Join Date: Jun 2020
Location: Sweden
Old 01-02-2023 , 17:16   Simple CS:GO Jailbreak vip plugin
Reply With Quote #1

Hello i am looking for someone to make me a vip plugin where if you are flagged as a vip you can type the command /vip to open up a vip menu with 3 options, Bhop, Gravity, Skins.

The first option should be bhop. When you click 1 it should allow you to bhop and if you click it again it turns off.
The second option should be a gravity where it turns on a gravity float of 2.0 and turns back to 1.0 if you click it again.

Both the first and second option should have a box next to them which shows a x inside if its enabled and no x when disabled.

The third option should be named 3. Skins where it takes you to a new menu with player models that the vips can choose from.

I did try myself but couldnt get farther then this, i linked my plugin at the bottom.

Cheers,
Jack
Attached Files
File Type: sp Get Plugin or Get Source (vipjackvip.sp - 46 views - 896 Bytes)

Last edited by Jackkkk; 01-02-2023 at 17:18.
Jackkkk is offline
Cruze
Veteran Member
Join Date: May 2017
Old 01-03-2023 , 09:38   Re: Simple CS:GO Jailbreak vip plugin
Reply With Quote #2

Untested
PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

bool g_bBhop[MAXPLAYERS+1] = {false, ...};

public 
void OnPluginStart() {
    
RegConsoleCmd("sm_vip"Command_Vip"Displays a vip menu");
}

public 
Action Command_Vip(int clientint args) {
    
Menu menu = new Menu(Menu_Callback);
    
menu.SetTitle("VIP Menu :)");
    if(
g_bBhop[client])
        
menu.AddItem("bhop""AutoBhop [X]");
    else
        
menu.AddItem("bhop""AutoBhop");
    if(
GetEntityGravity(client) == 2.0)
        
menu.AddItem("gravity""Gravity [X]");
    else
        
menu.AddItem("gravity""Gravity");
    
menu.AddItem("skins""Skins");
    
menu.ExitButton true;
    
menu.Display(client30);
    return 
Plugin_Handled;
}

public 
int Menu_Callback(Menu menuMenuAction actionint param1int param2)
{
    switch (
action) {

        case 
MenuAction_Select:
        {
            
char item[32];
            
menu.GetItem(param2itemsizeof(item));

            if (
StrEqual(item"bhop"))
                
g_bBhop[param1] = !g_bBhop[param1];
            else if (
StrEqual(item"gravity"))
                
SetEntityGravity(param1GetEntityGravity(param1) != 2.0 2.0 1.0);
            else if (
StrEqual(item"skins"))
                if(
CommandExists("sm_skins")) {
                    
FakeClientCommand(param1"sm_skins");
                    return 
1;
                }
                    
                else
                    
PrintToChat(param1"[SM] !skins plugin does not exist. Please contact admin.");
            
            
Command_Vip(param10);
        }

        case 
MenuAction_End:
        {
            
delete menu;
        }
    }
    return 
1;
}

public 
Action OnPlayerRunCmd(int clientint &buttons)
{
    if(!
IsPlayerAlive(client) || !g_bBhop[client])
        return 
Plugin_Continue;

    if(
buttons IN_JUMP)
    {
        if(
GetEntProp(clientProp_Data"m_nWaterLevel") <= 1)
        {
            if(!(
GetEntityMoveType(client) & MOVETYPE_LADDER))
            {
                if(!(
GetEntityFlags(client) & FL_ONGROUND))
                {
                    
buttons &= ~IN_JUMP;
                }
            }
        }
    }
    return 
Plugin_Continue;

__________________
Taking paid private requests! Contact me
Cruze 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:48.


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