Raised This Month: $37 Target: $400
 9% 

[REQ] can edit bb plugin vip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FLOY
Member
Join Date: Dec 2013
Location: I love to www.vgc.lv
Old 01-11-2019 , 17:28   [REQ] can edit bb plugin vip
Reply With Quote #1

can player edit vip plugin

PHP Code:
#pragma semicolon 1
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fun>
#include <hamsandwich>

#define ADMIN_JBVIP ADMIN_RESERVATION

// Define the Plugin Version
new const VERSION[] = { "1.0" };

// PREFIX
new const PREFIX[] = { "!g[ Base Builder ]!n" };

new 
VipUsed[33];
new 
HasSpeed[33];

new 
Float:fast_speed 400.0;
new 
Float:normal_speed 250.0;

public 
plugin_init()
{
    
register_plugin("BaseBuilder: VIP Menu"VERSION"");

    
RegisterHam(Ham_Spawn"player""FwdHamSpawn_Post"1);
    
RegisterHam(Ham_Item_PreFrame"player""FwdPreFrame_Post"1);
    
    
register_clcmd("say vmenu""cmdVmenu");
    
register_clcmd("say /vmenu""cmdVmenu");
    
register_clcmd("say_team vmenu""cmdVmenu");
    
register_clcmd("say_team /vmenu""cmdVmenu");
}

public 
FwdPreFrame_Post(id)
{
    if(
is_user_alive(id) && HasSpeed[id])
        
set_user_maxspeed(idfast_speed);
}

public 
FwdHamSpawn_Post(id)
{
    
HasSpeed[id] = false;
    
VipUsed[id] = false;
    
set_user_maxspeed(idnormal_speed);
    
set_user_renderingid_000_);  
}

public 
cmdVmenu(id)
{
    if(!(
get_user_flags(id) & ADMIN_JBVIP))
    {
        
client_printc(id"%s Menu apenas para !gVIP !n,Queres ser vip?, Escreve !g/vip !npara comprares."PREFIX);
        
        return 
PLUGIN_HANDLED;
    }
    
    if(
VipUsed[id])
    {
        
client_printc(id"%s Tu ja usaste !gVIP Menu!n nesta ronda. Por favor, Espera ate proxima ronda"PREFIX);
        
        return 
PLUGIN_HANDLED;
    }
    
    switch(
cs_get_user_team(id))
    {
        case 
CS_TEAM_T:
            
VipTMenu(id);
        
        case 
CS_TEAM_CT:
            
VipCTMenu(id);
    }
    
    return 
PLUGIN_HANDLED;
}

public 
VipCTMenu(id)
{
    new 
menu menu_create("\yVIP Menu \r(CT):^n""VipCTMenu_handler");

    
menu_additem(menu"\w150 Hp + 100 Colete""1"0);
    
menu_additem(menu"\wM249 + Deagle""2"0);
    
menu_additem(menu"\wSpeed""3"0);
    
menu_additem(menu"\wRevive""4"0);
    
menu_additem(menu"\wG3SG1""5"0);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}

public 
VipCTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }

    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);

    new 
key str_to_num(data);

    switch(
key)
    {
        case 
1:
        {
            
set_user_health(idget_user_health(id) + 150);
            
set_user_armor(idget_user_armor(id) + 100);
            
VipUsed[id] = true;
            
            
client_printc(id"%s Tu recebeste !g150 Hp!n + !g100 Colete!n"PREFIX);
        }
        case 
2:
        {
            
give_item(id"weapon_m249"); 
            
give_item(id"weapon_deagle"); 
            
cs_set_user_bpammo(idCSW_M249200); 
            
cs_set_user_bpammo(idCSW_DEAGLE100); 
            
            
VipUsed[id] = true;
            
            
client_printc(id"%s Tu recebeste !gM249!n + !gDeagle!n"PREFIX);
        }
        case 
3:
        {
            
VipUsed[id] = true;
            
HasSpeed[id] = true;
            
            
set_user_maxspeed(idfast_speed);
            
            
client_printc(id"%s Tu recebeste !gSpeed!n"PREFIX);
   } 
         
        case 
4
        { 
               
            
ExecuteHamB(Ham_CS_RoundRespawnid); 
  
            
VipUsed[id] = true

            
client_printc(id"%s Tu recebeste !gRevive"PREFIX); 
        } 
            
              case 
5
        { 
            
give_item(id"weapon_g3sg1"); 
            
cs_set_user_bpammo(idCSW_G3SG1200); 

            
VipUsed[id] = true

            
client_printc(id"%s Tu recebeste !gG3sg1"PREFIX); 
        }
    }

    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
VipTMenu(id)
{
    new 
menu menu_create("\yVIP Menu \r(TR):^n""VipTMenu_handler");

    
menu_additem(menu"\w5000 Hp + 5000 Colete""1"0);
    
menu_additem(menu"\wSpeed""2"0);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}

public 
VipTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }

    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);

    new 
key str_to_num(data);

    switch(
key)
    {
        case 
1:
        {
              
set_user_health(idget_user_health(id) + 5000); 
                                         
set_user_armor(idget_user_armor(id) + 5000); 
                                         
VipUsed[id] = true

            
            
client_printc(id"%s Tu recebeste !g5000 HP + !g5000 Colete!n"PREFIX);
            
            
VipUsed[id] = true;
        }
        case 
2:
        {
            
VipUsed[id] = true;
            
HasSpeed[id] = true;
            
            
set_user_maxspeed(idfast_speed);
            
            
client_printc(id"%s Tu recebeste !gSpeed!n"PREFIX);
        }
        
        case 
3:
        {
            
set_user_health(idget_user_health(id) + 50);
            
set_user_armor(idget_user_armor(id) + 150);
            
VipUsed[id] = true;
            
            
client_printc(id"%s Tu recebeste !g50 Hp!n + !g150 Colete!n"PREFIX);
        }
    }

    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }
}
#pragma semicolon 1
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fun>
#include <hamsandwich>

#define ADMIN_JBVIP ADMIN_RESERVATION

// Define the Plugin Version
new const VERSION[] = { "1.0" };

// PREFIX
new const PREFIX[] = { "!g[ Base Builder ]!n" };

new 
VipUsed[33];
new 
HasSpeed[33];

new 
Float:fast_speed 400.0;
new 
Float:normal_speed 250.0;

public 
plugin_init()
{
    
register_plugin("BaseBuilder: VIP Menu"VERSION"");

    
RegisterHam(Ham_Spawn"player""FwdHamSpawn_Post"1);
    
RegisterHam(Ham_Item_PreFrame"player""FwdPreFrame_Post"1);
    
    
register_clcmd("say vmenu""cmdVmenu");
    
register_clcmd("say /vmenu""cmdVmenu");
    
register_clcmd("say_team vmenu""cmdVmenu");
    
register_clcmd("say_team /vmenu""cmdVmenu");
}

public 
FwdPreFrame_Post(id)
{
    if(
is_user_alive(id) && HasSpeed[id])
        
set_user_maxspeed(idfast_speed);
}

public 
FwdHamSpawn_Post(id)
{
    
HasSpeed[id] = false;
    
VipUsed[id] = false;
    
set_user_maxspeed(idnormal_speed);
    
set_user_renderingid_000_);  
}

public 
cmdVmenu(id)
{
    if(!(
get_user_flags(id) & ADMIN_JBVIP))
    {
        
client_printc(id"%s Menu apenas para !gVIP !n,Queres ser vip?, Escreve !g/vip !npara comprares."PREFIX);
        
        return 
PLUGIN_HANDLED;
    }
    
    if(
VipUsed[id])
    {
        
client_printc(id"%s Tu ja usaste !gVIP Menu!n nesta ronda. Por favor, Espera ate proxima ronda"PREFIX);
        
        return 
PLUGIN_HANDLED;
    }
    
    switch(
cs_get_user_team(id))
    {
        case 
CS_TEAM_T:
            
VipTMenu(id);
        
        case 
CS_TEAM_CT:
            
VipCTMenu(id);
    }
    
    return 
PLUGIN_HANDLED;
}

public 
VipCTMenu(id)
{
    new 
menu menu_create("\yVIP Menu \r(CT):^n""VipCTMenu_handler");

    
menu_additem(menu"\w150 Hp + 100 Colete""1"0);
    
menu_additem(menu"\wM249 + Deagle""2"0);
    
menu_additem(menu"\wSpeed""3"0);
    
menu_additem(menu"\wRevive""4"0);
    
menu_additem(menu"\wG3SG1""5"0);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}

public 
VipCTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }

    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);

    new 
key str_to_num(data);

    switch(
key)
    {
        case 
1:
        {
            
set_user_health(idget_user_health(id) + 150);
            
set_user_armor(idget_user_armor(id) + 100);
            
VipUsed[id] = true;
            
            
client_printc(id"%s Tu recebeste !g150 Hp!n + !g100 Colete!n"PREFIX);
        }
        case 
2:
        {
            
give_item(id"weapon_m249"); 
            
give_item(id"weapon_deagle"); 
            
cs_set_user_bpammo(idCSW_M249200); 
            
cs_set_user_bpammo(idCSW_DEAGLE100); 
            
            
VipUsed[id] = true;
            
            
client_printc(id"%s Tu recebeste !gM249!n + !gDeagle!n"PREFIX);
        }
        case 
3:
        {
            
VipUsed[id] = true;
            
HasSpeed[id] = true;
            
            
set_user_maxspeed(idfast_speed);
            
            
client_printc(id"%s Tu recebeste !gSpeed!n"PREFIX);
   } 
         
        case 
4
        { 
               
            
ExecuteHamB(Ham_CS_RoundRespawnid); 
  
            
VipUsed[id] = true

            
client_printc(id"%s Tu recebeste !gRevive"PREFIX); 
        } 
            
              case 
5
        { 
            
give_item(id"weapon_g3sg1"); 
            
cs_set_user_bpammo(idCSW_G3SG1200); 

            
VipUsed[id] = true

            
client_printc(id"%s Tu recebeste !gG3sg1"PREFIX); 
        }
    }

    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
VipTMenu(id)
{
    new 
menu menu_create("\yVIP Menu \r(TR):^n""VipTMenu_handler");

    
menu_additem(menu"\w5000 Hp + 5000 Colete""1"0);
    
menu_additem(menu"\wSpeed""2"0);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}

public 
VipTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }

    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);

    new 
key str_to_num(data);

    switch(
key)
    {
        case 
1:
        {
              
set_user_health(idget_user_health(id) + 5000); 
                                         
set_user_armor(idget_user_armor(id) + 5000); 
                                         
VipUsed[id] = true

            
            
client_printc(id"%s Tu recebeste !g5000 HP + !g5000 Colete!n"PREFIX);
            
            
VipUsed[id] = true;
        }
        case 
2:
        {
            
VipUsed[id] = true;
            
HasSpeed[id] = true;
            
            
set_user_maxspeed(idfast_speed);
            
            
client_printc(id"%s Tu recebeste !gSpeed!n"PREFIX);
        }
        
        case 
3:
        {
            
set_user_health(idget_user_health(id) + 50);
            
set_user_armor(idget_user_armor(id) + 150);
            
VipUsed[id] = true;
            
            
client_printc(id"%s Tu recebeste !g50 Hp!n + !g150 Colete!n"PREFIX);
        }
    }

    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

I want delete
menu_additem(menu, "\wM249 + Deagle", "2", 0);
menu_additem(menu, "\wRevive", "4", 0);
menu_additem(menu, "\wG3SG1", "5", 0);

---
And add for this plugin
prefix [VIP] IN TAB LIST AND SEE IN CHAT
And add glow for only humans http://prntscr.com/m60wzw
And only VIP


---
Tenks for editer happy 2019
__________________

Last edited by FLOY; 01-11-2019 at 17:57.
FLOY is offline
Send a message via Skype™ to FLOY
Nutu_
Senior Member
Join Date: Mar 2016
Location: Romania, Timisoara
Old 01-11-2019 , 18:31   Re: [REQ] can edit bb plugin vip
Reply With Quote #2

1. VIP in scoreboard
PHP Code:
#include <amxmodx>

#define DEAD (1<<0)
#define VIP (1<<2)

public plugin_init()
   
register_message(get_user_msgid("ScoreAttrib"), "set_vip_score")


public 
set_vip_score() 
{
   new 
id get_msg_arg_int(1);
   if(
is_user_connected(id) && (get_user_flags(id) & ADMIN_LEVEL_H))
      
set_msg_arg_int(2ARG_BYTEis_user_alive(id) ? VIP DEAD)

Vip prefix
PHP Code:
/* Plugin generated by AMXX-Studio */

#include < amxmodx >


#define PLUGIN "Rang Admin Chat Fixed"
#define VERSION "1.0.0"

#pragma semicolon 1

#define   MAX_GROUPS   1


// --| CC_ColorChat.
enum Color
{
   
NORMAL 1,       // Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
   
GREEN,          // Culoare Verde.
   
TEAM_COLOR,       // Culoare Rosu, Albastru, Gri.
   
GREY,          // Culoarea Gri.
   
RED,          // Culoarea Rosu.
   
BLUE,          // Culoarea Albastru.
};

new 
TeamName[  ][  ] = 
{
   
"",
   
"TERRORIST",
   
"CT",
   
"SPECTATOR"
};
// --| CC_ColorChat.


enum CsTeams 
{
   
CS_TEAM_UNASSIGNED 0,
   
CS_TEAM_T 1,
   
CS_TEAM_CT 2,
   
CS_TEAM_SPECTATOR 3
};

new 
g_szGroupsMAX_GROUPS ][ ] =
{
   
"[VIP]"
};

new 
g_szGroupsFlagsMAX_GROUPS ][ ] =
{
   
                
"t"
};

new 
g_iGroupsFlagsValuesMAX_GROUPS ];

public 
plugin_init( )
{
   
//Plugin original creat de Ex3cuTioN ( pluginuri-extream/rangadminchat-t81702.html )!
   
register_pluginPLUGINVERSION"Askhanar" );
   
   
   
register_clcmd("say","HookClCmdSay");
   
register_clcmd("say_team","HookClCmdSayTeam");
   
   for( new 
0MAX_GROUPSi++ )
      
g_iGroupsFlagsValues] = read_flagsg_szGroupsFlags] );
      
   
// Add your code here...
}


public 
HookClCmdSayid )
{
   
   if( 
is_user_botid ) )
      return 
PLUGIN_CONTINUE;
   
   static 
szChat192 ];
   
read_argsszChatsizeofszChat ) - );
   
remove_quotesszChat );
   
   if( 
equaliszChat,"" ) )
      return 
PLUGIN_CONTINUE;
   
   static 
szName32 ];
   
get_user_nameidszNamesizeof szName ) -);
      
   if( 
is_user_adminid ) )
   {
      static 
i0;
      
      for( 
0MAX_GROUPSi++ )
      {
         
         if( ~
flags ADMIN_LEVEL_H )
         {
            
            switch( 
get_user_teamid ) )
            {
               case 
CS_TEAM_T:      ColorChat0RED,"^x04[%s]^x03%s^x01:%s"g_szGroups], szNameszChat );
               case 
CS_TEAM_CT:   ColorChat0BLUE,"^x04[%s]^x03%s^x01:%s"g_szGroups], szNameszChat );
               case 
CS_TEAM_SPECTATOR:   ColorChat0GREY,"^x04[%s]^x03%s^x01:%s"g_szGroups], szNameszChat );
            }
            
            break;
         }
      }
   }
   
   else
   {
      
      switch( 
get_user_teamid ) )
      {
         case 
CS_TEAM_T:      ColorChat0RED,"^x03%s%s^x01:%s"is_user_aliveid ) ? "" "*Mort* "szNameszChat );
         case 
CS_TEAM_CT:   ColorChat0BLUE,"^x03%s%s^x01:%s"is_user_aliveid ) ? "" "*Mort* "szNameszChat );
         case 
CS_TEAM_SPECTATOR:   ColorChat0GREY,"^x03%s^x01:%s"szNameszChat );
      }
      
   }
   
   
   return 
PLUGIN_HANDLED_MAIN;
}

public 
HookClCmdSayTeamid )
{
   
   if( 
is_user_botid ) )
      return 
PLUGIN_CONTINUE;
   
   static 
szChat192 ];
   
read_argsszChatsizeofszChat ) - );
   
remove_quotesszChat );
   
   if( 
equaliszChat,"" ) )
      return 
PLUGIN_CONTINUE;
   
   static 
szName32 ];
   
get_user_nameidszNamesizeof szName ) -);
   
   static 
iPlayers32 ];
   static 
iPlayersNum;
   
   
get_playersiPlayersiPlayersNum"ch" );
   if( !
iPlayersNum )
      return 
PLUGIN_CONTINUE;
   
   static 
iPlayeri;
   if( 
is_user_adminid ) )
   {
      static 
x0;
      
      for( 
0MAX_GROUPSi++ )
      {
         
         if( 
get_user_flagsid ) == g_iGroupsFlagsValues] )
         {   
   
            for( 
0iPlayersNumi++ )
            {
               
               
iPlayer iPlayers];
      
               if( 
get_user_teamid ) == get_user_teamiPlayer ) )
               {
                  switch( 
get_user_teamid ) )
                  {
                     case 
CS_TEAM_T:      ColorChatiPlayerRED"^x04[%s]^x03(Terrorist) %s^x01:%s"g_szGroups], szNameszChat );
                     case 
CS_TEAM_CT:   ColorChatiPlayerBLUE"^x04[%s]^x03(Counter-Terrorist) %s^x01:%s"g_szGroups], szNameszChat );
                     case 
CS_TEAM_SPECTATOR:   ColorChatiPlayerGREY"^x04[%s]^x03(Spectator) %s^x01:%s"g_szGroups], szNameszChat );
                  }
               }
            }
            
            break;
         }
      }
   }
   
   else
   {
      
      for( 
0iPlayersNumi++ )
      {
         
         
iPlayer iPlayers];

         if( 
get_user_teamid ) == get_user_teamiPlayer ) )
         {
            switch( 
get_user_teamid ) )
            {
               case 
CS_TEAM_T:      ColorChatiPlayerRED"^x03(Terrorist)%s%s^x01:%s"is_user_aliveid ) ? "" "*Mort* "szNameszChat );
               case 
CS_TEAM_CT:   ColorChatiPlayerBLUE"^x03(Counter-Terrorist)%s%s^x01:%s"is_user_aliveid ) ? "" "*Mort* "szNameszChat );
               case 
CS_TEAM_SPECTATOR:   ColorChatiPlayerGREY"^x03(Spectator) %s^x01:%s"szNameszChat );
            }
         }
      }
   }
            
   return 
PLUGIN_HANDLED_MAIN;
}

// From amxmisc.inc
stock is_user_adminid )
{
   new 
__flags=get_user_flags(id);
   return (
__flags>&& !(__flags&ADMIN_USER));
}
// -----------------------


// --| CC_ColorChat.
ColorChat(  idColor:iType, const msg[  ], { FloatSqlResult_}:...  )
{
   
   
// Daca nu se afla nici un jucator pe server oprim TOT. Altfel dam de erori..
   
if( !get_playersnum( ) ) return;
   
   new 
szMessage256 ];

   switch( 
iType )
   {
       
// Culoarea care o are jucatorul setata in cvar-ul scr_concolor.
      
case NORMAL:   szMessage] = 0x01;
      
      
// Culoare Verde.
      
case GREEN:   szMessage] = 0x04;
      
      
// Alb, Rosu, Albastru.
      
default:    szMessage] = 0x03;
   }

   
vformat(  szMessage], 251msg4  );

   
// Ne asiguram ca mesajul nu este mai lung de 192 de caractere.Altfel pica server-ul.
   
szMessage192 ] = '^0';
   

   new 
iTeamiColorChangeiPlayerIndexMSG_Type;
   
   if( 
id )
   {
      
MSG_Type  =  MSG_ONE_UNRELIABLE;
      
iPlayerIndex  =  id;
   }
   else
   {
      
iPlayerIndex  =  CC_FindPlayer(  );
      
MSG_Type MSG_ALL;
   }
   
   
iTeam  =  get_user_teamiPlayerIndex );
   
iColorChange  =  CC_ColorSelection(  iPlayerIndex,  MSG_TypeiType);

   
CC_ShowColorMessage(  iPlayerIndexMSG_TypeszMessage  );
      
   if(  
iColorChange  )   CC_Team_Info(  iPlayerIndexMSG_Type,  TeamNameiTeam ]  );

}

CC_ShowColorMessage(  id, const iType, const szMessage[  ]  )
{
   
   static 
bool:bSayTextUsed;
   static 
iMsgSayText;
   
   if(  !
bSayTextUsed  )
   {
      
iMsgSayText  =  get_user_msgid"SayText" );
      
bSayTextUsed  =  true;
   }
   
   
message_beginiTypeiMsgSayText_id  );
   
write_byte(  id  );      
   
write_string(  szMessage  );
   
message_end(  );
}

CC_Team_Infoid, const iType, const szTeam[  ] )
{
   static 
bool:bTeamInfoUsed;
   static 
iMsgTeamInfo;
   if(  !
bTeamInfoUsed  )
   {
      
iMsgTeamInfo  =  get_user_msgid"TeamInfo" );
      
bTeamInfoUsed  =  true;
   }
   
   
message_beginiTypeiMsgTeamInfo_id  );
   
write_byte(  id  );
   
write_string(  szTeam  );
   
message_end(  );

   return 
1;
}

CC_ColorSelection(  id, const iTypeColor:iColorType)
{
   switch(  
iColorType  )
   {
      
      case 
RED:   return CC_Team_Info(  idiTypeTeamName]  );
      case 
BLUE:   return CC_Team_Info(  idiTypeTeamName]  );
      case 
GREY:   return CC_Team_Info(  idiTypeTeamName]  );

   }

   return 
0;
}

CC_FindPlayer(  )
{
   new 
iMaxPlayers  =  get_maxplayers(  );
   
   for( new 
1<= iMaxPlayersi++ )
      if(  
is_user_connected)  )
         return 
i;
   
   return -
1;
}
// --| CC_ColorChat 
glowmenu: https://forums.alliedmods.net/showth...=26978?p=26978
you can edit it only for vip by yourself, its really eazy.

VIP deleting what you asked for
PHP Code:
#pragma semicolon 1
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fun>
#include <hamsandwich>

#define ADMIN_JBVIP ADMIN_RESERVATION

// Define the Plugin Version
new const VERSION[] = { "1.0" };

// PREFIX
new const PREFIX[] = { "!g[ Base Builder ]!n" };

new 
VipUsed[33];
new 
HasSpeed[33];

new 
Float:fast_speed 400.0;
new 
Float:normal_speed 250.0;

public 
plugin_init()
{
    
register_plugin("BaseBuilder: VIP Menu"VERSION"");

    
RegisterHam(Ham_Spawn"player""FwdHamSpawn_Post"1);
    
RegisterHam(Ham_Item_PreFrame"player""FwdPreFrame_Post"1);
    
    
register_clcmd("say vmenu""cmdVmenu");
    
register_clcmd("say /vmenu""cmdVmenu");
    
register_clcmd("say_team vmenu""cmdVmenu");
    
register_clcmd("say_team /vmenu""cmdVmenu");
}

public 
FwdPreFrame_Post(id)
{
    if(
is_user_alive(id) && HasSpeed[id])
        
set_user_maxspeed(idfast_speed);
}

public 
FwdHamSpawn_Post(id)
{
    
HasSpeed[id] = false;
    
VipUsed[id] = false;
    
set_user_maxspeed(idnormal_speed);
    
set_user_renderingid_000_);  
}

public 
cmdVmenu(id)
{
    if(!(
get_user_flags(id) & ADMIN_JBVIP))
    {
        
client_printc(id"%s Menu apenas para !gVIP !n,Queres ser vip?, Escreve !g/vip !npara comprares."PREFIX);
        
        return 
PLUGIN_HANDLED;
    }
    
    if(
VipUsed[id])
    {
        
client_printc(id"%s Tu ja usaste !gVIP Menu!n nesta ronda. Por favor, Espera ate proxima ronda"PREFIX);
        
        return 
PLUGIN_HANDLED;
    }
    
    switch(
cs_get_user_team(id))
    {
        case 
CS_TEAM_T:
            
VipTMenu(id);
        
        case 
CS_TEAM_CT:
            
VipCTMenu(id);
    }
    
    return 
PLUGIN_HANDLED;
}

public 
VipCTMenu(id)
{
    new 
menu menu_create("\yVIP Menu \r(CT):^n""VipCTMenu_handler");

    
menu_additem(menu"\w150 Hp + 100 Colete""1"0);
    
menu_additem(menu"\wSpeed""2"0);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}

public 
VipCTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }

    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);

    new 
key str_to_num(data);

    switch(
key)
    {
        case 
1:
        {
            
set_user_health(idget_user_health(id) + 150);
            
set_user_armor(idget_user_armor(id) + 100);
            
VipUsed[id] = true;
            
            
client_printc(id"%s Tu recebeste !g150 Hp!n + !g100 Colete!n"PREFIX);
        }
        case 
2:
        {
            
VipUsed[id] = true;
            
HasSpeed[id] = true;
            
            
set_user_maxspeed(idfast_speed);
            
            
client_printc(id"%s Tu recebeste !gSpeed!n"PREFIX);
   }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

public 
VipTMenu(id)
{
    new 
menu menu_create("\yVIP Menu \r(TR):^n""VipTMenu_handler");

    
menu_additem(menu"\w5000 Hp + 5000 Colete""1"0);
    
menu_additem(menu"\wSpeed""2"0);
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu0);
}

public 
VipTMenu_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }

    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);

    new 
key str_to_num(data);

    switch(
key)
    {
        case 
1:
        {
              
set_user_health(idget_user_health(id) + 5000); 
                                         
set_user_armor(idget_user_armor(id) + 5000); 
                                         
VipUsed[id] = true

            
            
client_printc(id"%s Tu recebeste !g5000 HP + !g5000 Colete!n"PREFIX);
            
            
VipUsed[id] = true;
        }
        case 
2:
        {
            
VipUsed[id] = true;
            
HasSpeed[id] = true;
            
            
set_user_maxspeed(idfast_speed);
            
            
client_printc(id"%s Tu recebeste !gSpeed!n"PREFIX);
        }
        
        case 
3:
        {
            
set_user_health(idget_user_health(id) + 50);
            
set_user_armor(idget_user_armor(id) + 150);
            
VipUsed[id] = true;
            
            
client_printc(id"%s Tu recebeste !g50 Hp!n + !g150 Colete!n"PREFIX);
        }
    }

    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
}

// Colour Chat
stock client_printc(const id, const input[], any:...)
{
    new 
count 1players[32];
    static 
msg[191];
    
vformat(msg190input3);
    
    
replace_all(msg190"!g""^x04"); // Green Color
    
replace_all(msg190"!n""^x01"); // Default Color
    
replace_all(msg190"!t""^x03"); // Team Color
    
    
if (idplayers[0] = id; else get_players(playerscount"ch");
    {
        for (new 
0counti++)
        {
            if (
is_user_connected(players[i]))
            {
                
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i]);
                
write_byte(players[i]);
                
write_string(msg);
                
message_end();
            }
        }
    }

__________________
a simple act of caring creates an endless ripple.

Last edited by Nutu_; 01-11-2019 at 18:31.
Nutu_ is online now
FLOY
Member
Join Date: Dec 2013
Location: I love to www.vgc.lv
Old 01-11-2019 , 18:51   Re: [REQ] can edit bb plugin vip
Reply With Quote #3

Glow so has so big dis not his
https://prnt.sc/m60wzw

And dis has this http://prntscr.com/m61wyh
__________________
FLOY is offline
Send a message via Skype™ to FLOY
Reply


Thread Tools
Display Modes

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 20:31.


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