AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Need VIP menu ! (https://forums.alliedmods.net/showthread.php?t=302167)

Mr.J 10-19-2017 06:11

Need VIP menu !
 
Its my first thread :) i hope u help me :wink:.
i need plugin which VIP get a menu after he get spawned , he choose one item for 1 map, he can change the item only in other map.
Vips and admins have the vip menu like :
1. 50 instant hp
2. 2xJump
3. Less Visible
4. 2x HE grenade
5. Gravity
6. Speed
+extra: Admins get free 2xJump + vipmenu chose.
Anyone :):):)

D3XT3R 10-19-2017 06:12

Re: Need VIP menu !
 
Search, this already maked from BEFORE!!!

Mr.J 10-19-2017 06:50

Re: Need VIP menu !
 
is it here in alliedmodders ?

Godofwar 10-19-2017 14:35

Re: Need VIP menu !
 
he is trying to copy my vipmenu in my server. @Mr.J => Duplex, stop to try to copy all what i have. But when u want that i can sell it to u ;) :D

Ayman Khaled 10-19-2017 14:45

Re: Need VIP menu !
 
Quote:

Originally Posted by Godofwar (Post 2555455)
he is trying to copy my vipmenu in my server. @Mr.J => Duplex, stop to try to copy all what i have. But when u want that i can sell it to u ;) :D

sell what when you requested this already, and changed a few things ???? https://forums.alliedmods.net/showthread.php?t=301315

Godofwar 10-19-2017 16:06

Re: Need VIP menu !
 
Quote:

Originally Posted by Ayman Khaled (Post 2555460)
sell what when you requested this already, and changed a few things ???? https://forums.alliedmods.net/showthread.php?t=301315

Nop. That request is different . ;) But leave it.

D3XT3R 10-20-2017 05:03

Re: Need VIP menu !
 
Quote:

Originally Posted by Mr.J (Post 2555381)
is it here in alliedmodders ?

kho khosek ay haja hab tekhdemha goli w nekhdemhalek batel ;) ghir dirli add fel steam min tehtajni ;)

Your request:
First of all:
Just learn to search as i said in my first post....
Original post: https://forums.alliedmods.net/showpo...54&postcount=4

Secound ur code ready just few edits in DoNNi code as i show original post
PHP Code:

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

#define VIP_FLAG ADMIN_LEVEL_H 

#define HP_VALUE 50 
#define GRAVITY_VALUE 0.45 
#define SPEED_VALUE 330 

new g_SpeedUsed[33], g_JumpUsed[33]; 
new 
g_JumpNume[33] = 0

new Ham:Ham_Player_ResetMaxSpeed Ham_Item_PreFrame 

public plugin_init() { 

    
register_plugin("VIP Menu""1.0""DoNii"); 
     
    
RegisterHam(Ham_Player_ResetMaxSpeed"player""playerResetMaxSpeed"1
    
RegisterHam(Ham_Spawn"player""fw_HamSpawnPost"1
    
RegisterHam(Ham_Killed"player""fw_HamKilledPost"1
     


public 
open_vip_shop(id) { 

    if(!(
get_user_flags(id) & VIP_FLAG)) { 
        return 
PLUGIN_HANDLED
    } 
    
    if(!
is_user_alive(id)) 
    return 
PLUGIN_HANDLED

    new 
menu menu_create("[VIP] Menu""menu_handler"

    
menu_additemmenu"50 HP""");  
    
menu_additemmenu"Multi-Jump"""); 
    
menu_additemmenu"Speed"""); 
    
menu_additemmenu"Gravity"""); 
    
menu_additemmenu"2X He Grenade"""); 
    
menu_additemmenu"80% Invisibility"""); 

    
menu_display(idmenu0
     
    return 
PLUGIN_HANDLED



public 
menu_handler(idmenuitem) { 

    switch(
item) { 

    case 
0: { 

            
set_user_health(idget_user_health(id) + HP_VALUE

        } 

    case 
1: { 

            
g_JumpUsed[id] = true 

        


    case 
2: { 

            
set_user_maxspeed(idfloat(SPEED_VALUE)) 
            
g_SpeedUsed[id] = true 

        

         
    case 
3: { 
             
            
set_user_gravity(idGRAVITY_VALUE
             
        } 
         
    case 
4: { 
             
            
give_item(id"weapon_hegrenade"
            
give_item(id"weapon_hegrenade"
            
        } 
        
    case 
5: { 
             
            
set_user_rendering(idkRenderFxGlowShell000kRenderTransAlpha20)   
             
        } 
         
    } 
     
    
menu_destroy(menu
    return 
PLUGIN_HANDLED


public 
playerResetMaxSpeed(id) { 
     
    if(
g_SpeedUsed[id])  
    { 
        
set_user_maxspeed(idfloat(SPEED_VALUE)) 
    } 
}   

public 
fw_HamKilledPost(victimattackershouldgib) { 

    
ResetVariables(victim


public 
fw_HamSpawnPost(id) { 

    
ResetVariables(id
    
open_vip_shop(id)


public 
client_PreThink(id)
{
    if(!
is_user_alive(id) return PLUGIN_CONTINUE
    
new nbut get_user_button(id)
    new 
obut get_user_oldbutton(id)
    if((
nbut IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut IN_JUMP))
    {
        if(
g_JumpNume[id] < 1)
        {
            
g_JumpUsed[id] = true
            g_JumpNume
[id]++
            return 
PLUGIN_CONTINUE
        
}
    }
    if((
nbut IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
    {
        
g_JumpNume[id] = 0
        
return PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}

public 
client_PostThink(id)
{
    if(!
is_user_alive(id) return PLUGIN_CONTINUE
    
if(g_JumpUsed[id] == true)
    {
        new 
Float:velocity[3]    
        
entity_get_vector(id,EV_VEC_velocity,velocity)
        
velocity[2] = random_float(265.0,285.0)
        
entity_set_vector(id,EV_VEC_velocity,velocity)
        
g_JumpUsed[id] = false
        
return PLUGIN_CONTINUE
    
}
    return 
PLUGIN_CONTINUE
}    

ResetVariables(id) { 

    
g_SpeedUsed[id] = false 
    g_JumpUsed
[id] = false
    g_JumpNume
[id] = 0
    
    set_user_maxspeed
(id
    
set_user_gravity(id
    
set_user_rendering(id



DjSoftero 10-20-2017 08:44

Re: Need VIP menu !
 
Quote:

Originally Posted by Godofwar (Post 2555473)
Nop. That request is different . ;) But leave it.

how is it different? just cuz you used https://forums.alliedmods.net/showthread.php?t=10159 along with the it, doesn`t mean you can sell it. And you shouldn`t sell because you can`t maintain the plugin. If bug pops out, you would have no clue how to fix it.

D3XT3R 10-20-2017 10:40

Re: Need VIP menu !
 
Quote:

Originally Posted by DjSoftero (Post 2555568)
If bug pops out, you would have no clue how to fix it.

he have me :D
by the way i already helped this guy from my city :D for vipmenu of edone and some edits :D because all know me a editeur :D

Natsheh 10-20-2017 13:10

Re: Need VIP menu !
 
Quote:

Originally Posted by D3XT3R (Post 2555593)
he have me :D
by the way i already helped this guy from my city :D for vipmenu of edone and some edits :D because all know me a editeur :D


Youre pro..!


All times are GMT -4. The time now is 09:59.

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