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

vipmenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
annika
Member
Join Date: Dec 2014
Old 01-18-2015 , 09:49   vipmenu
Reply With Quote #1

Hello can i be please /vipmenu
If i go server and i write /vipmenu i see the menu, and i can use /vipmenu every round one time.

1. 10Hitpoints
2. 10Armour
3. Gravity 700
4. No Flash
5. 250$
annika is offline
annika
Member
Join Date: Dec 2014
Old 01-21-2015 , 06:05   Re: vipmenu
Reply With Quote #2

Forum is dead?
annika is offline
Old 01-21-2015, 06:35
Eagle07
This message has been deleted by Eagle07.
bat
Veteran Member
Join Date: Jul 2012
Old 01-21-2015 , 07:23   Re: vipmenu
Reply With Quote #3

PHP Code:
#include amxmodx
#include amxmisc
#include fakemeta
#include cstrike

const ACCES_VIP  =     ADMIN_LEVEL_H
#define LIMITS 2

const KEYSMENU MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5

new bool:noflash[33]
new 
limit[33]
new 
bool:hasgravity[33]

public 
plugin_init() 
{
                      
register_event("HLTV""newround""a""1=0""2=0")
                      
register_clcmd("say /vipmenu""show_menu_vip")
              
register_menu("Vip Menu"KEYSMENU"vip_menu")
                      
register_concmd("vip_menu""show_menu_vip")
              
register_event("ScreenFade""eventFlash""be""4=255""5=255""6=255""7>199")
}                      

public 
newround(){
    for(new 
id 1id <= get_maxplayers(); id++)
    {
        if(
get_user_flags(id) & ACCES_VIP)
                {
                
limit[id] = 0
            noflash
[id] = false
                    hasgravity
[id] = false
                
}
    }
}    

public 
eventFlash(id)
{
    if(
is_user_connected(id) && noflash[id] == true && get_user_flags(id) & ACCES_VIP)
    {
         
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, id)
         
write_short(1)
         
write_short(1)
         
write_short(1)
         
write_byte(0)
         
write_byte(0)
         
write_byte(0)
         
write_byte(255)
         
message_end()
    }
}    

public 
show_menu_vip(id)
{
    static 
menu[255], len
    len 

        
    len 
+= formatex(menu[len], charsmax(menu) - len"\yVIP MENU | You is: %s^n^n"get_user_flags(id) & ACCES_VIP "VIP Member" "Simple Player")

        if(
get_user_flags(id) & ACCES_VIP)
        {
       
len += formatex(menu[len], charsmax(menu) - len"\r1.\w 10HitPoints^n")
       
len += formatex(menu[len], charsmax(menu) - len"\r2.\w 10Armour^n")

           if(
hasgravity[id] == false)
       
len += formatex(menu[len], charsmax(menu) - len"\r3.\w Gravity 700^n")
           else
       
len += formatex(menu[len], charsmax(menu) - len"\r3.\d Gravity 700^n")

           if(
noflash[id] == false)
       
len += formatex(menu[len], charsmax(menu) - len"\r4.\w No Flash^n")
           else
       
len += formatex(menu[len], charsmax(menu) - len"\r4.\d No Flash^n")

       
len += formatex(menu[len], charsmax(menu) - len"\r5.\w 250$^n^n")
    
    }
        else
    {
       
len += formatex(menu[len], charsmax(menu) - len"\r1.\d 10HitPoints^n")
       
len += formatex(menu[len], charsmax(menu) - len"\r2.\d 10Armour^n")
       
len += formatex(menu[len], charsmax(menu) - len"\r3.\d Gravity 700^n")
       
len += formatex(menu[len], charsmax(menu) - len"\r4.\d No Flash^n")
       
len += formatex(menu[len], charsmax(menu) - len"\r5.\d 250$^n^n")
    }
    
        
len += formatex(menu[len], charsmax(menu) - len"^n^n\r0.\w Exit")
    
show_menu(idKEYSMENUmenu, -1"Vip Menu")
}

public 
vip_menu(idkey)
{
    if(
limit[id] >= LIMITS)
    {
            
client_print(idprint_chat"You can use a VIP Member privileges just %d times on round"LIMITS)
            return;
    }
    if(
get_user_flags(id) & ACCES_VIP)
    {
        switch (
key)
    {
         case 
0: {fm_set_user_health(idpev(idpev_health) + 10)
                      
limit[id]++
             }
             case 
1: {set_pev(idpev_armorvalue10.0)    
                      
limit[id]++
             }
         case 
2: { if(hasgravity[id] == true)
                           return;
                      
set_pev(idpev_gravity0.7)
                      
hasgravity[id] = true
                      limit
[id]++
             }
         case 
3: {
                      if(
noflash[id] == true
                           return;
                      
noflash[id] = true
                      limit
[id]++
             }
             case 
4: {cs_set_user_money(idcs_get_user_money(id) + 250)
                      
limit[id]++
             }
        }             
    }        
}

stock fm_set_user_health(indexhealth)
{
    (
health 0) ? set_pev(indexpev_healthfloat(health)) : dllfunc(DLLFunc_ClientKillindex)

__________________
bat is offline
Send a message via Skype™ to bat
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 01-21-2015 , 07:53   Re: vipmenu
Reply With Quote #4

Quote:
Originally Posted by annika View Post
Forum is dead?
Personally, I directly ignore topics about VIPs, existing plugins, some hours bumps/multiposting, etc. why?
  1. there are tons of flooding VIP threads, even the SearchBot himself won't be able to find the one you are searching for. Yes, it already exist, they are all the same !!
  2. to ask somewhere else than related threads isn't genious, it's clumsy.
  3. hyperactivity and impatience are the worst way to get attention.
Rules exist to make everything more organized, for everyone. not to be exceeded.
__________________
ANTICHRISTUS is offline
jingojang
Senior Member
Join Date: Feb 2010
Location: The Moon
Old 01-22-2015 , 04:36   Re: vipmenu
Reply With Quote #5

To be fair ANTICHRISTUS, there is not a lot of players that is playing Counter Strike 1.6 so if any forum could help with the activity of a game then alliedmodders is it. This part of the forum is obviously not as popular as it was once.

I think it is sad that the game is dying but we have some people(warriors) that is still trying to keep the game alive.

Regards
__________________
jingojang is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 01-22-2015 , 13:32   Re: vipmenu
Reply With Quote #6

My reply wasn't about a dead game but about a kind of egoism: To make a request somewhere and to wait for fast answers (I am not against you personally, dear original poster. But against such a behaviour).

Seriously, look at this. More than what the search engine may find (and just) in this sub-forum.

ps. before to be dead, forums will suffocate in a long and terrible agony.
__________________
ANTICHRISTUS 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 13:10.


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