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

Need VIP menu !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 10-19-2017 , 06:11   Need VIP menu !
Reply With Quote #1

Its my first thread i hope u help me .
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
Mr.J is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-19-2017 , 06:12   Re: Need VIP menu !
Reply With Quote #2

Search, this already maked from BEFORE!!!
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 10-19-2017 , 06:50   Re: Need VIP menu !
Reply With Quote #3

is it here in alliedmodders ?
Mr.J is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 10-19-2017 , 14:35   Re: Need VIP menu !
Reply With Quote #4

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 ;)

Last edited by Godofwar; 10-19-2017 at 14:35.
Godofwar is offline
Ayman Khaled
Senior Member
Join Date: Mar 2017
Location: Palestine
Old 10-19-2017 , 14:45   Re: Need VIP menu !
Reply With Quote #5

Quote:
Originally Posted by Godofwar View Post
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 ;)
sell what when you requested this already, and changed a few things ???? https://forums.alliedmods.net/showthread.php?t=301315
__________________

Last edited by Ayman Khaled; 10-19-2017 at 15:00.
Ayman Khaled is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 10-19-2017 , 16:06   Re: Need VIP menu !
Reply With Quote #6

Quote:
Originally Posted by Ayman Khaled View Post
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.
Godofwar is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-20-2017 , 05:03   Re: Need VIP menu !
Reply With Quote #7

Quote:
Originally Posted by Mr.J View Post
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

__________________

Last edited by D3XT3R; 10-21-2017 at 10:04. Reason: Fix code
D3XT3R is offline
Send a message via Skype™ to D3XT3R
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-20-2017 , 08:44   Re: Need VIP menu !
Reply With Quote #8

Quote:
Originally Posted by Godofwar View Post
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.
__________________
retired chump

Last edited by DjSoftero; 10-20-2017 at 08:45.
DjSoftero is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 10-20-2017 , 10:40   Re: Need VIP menu !
Reply With Quote #9

Quote:
Originally Posted by DjSoftero View Post
If bug pops out, you would have no clue how to fix it.
he have me
by the way i already helped this guy from my city for vipmenu of edone and some edits because all know me a editeur
__________________

Last edited by D3XT3R; 10-20-2017 at 10:41.
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-20-2017 , 13:10   Re: Need VIP menu !
Reply With Quote #10

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

Youre pro..!
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 03:55.


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