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

vipmenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.@Rr0w
New Member
Join Date: Apr 2016
Old 04-10-2016 , 13:52   vipmenu
Reply With Quote #1

i need plugin for vipmenu on public server
like this
the VIP player get at start round to choose
1.AK47+deagle
2.M4A1+deagl
3AWP+deagle
+all grenade
when vip player connect on server tho show on chat V.I.P "nick" Connected.
when vip player kill get 10 HP and for Head Shop 20HP+
and money for kill 500 + . head shop 1000+
VIp player get the models, for CT and T, already i have the models,
Help me Please
I need it fast

Last edited by Mr.@Rr0w; 04-10-2016 at 13:53.
Mr.@Rr0w is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-10-2016 , 14:28   Re: vipmenu
Reply With Quote #2

Next time, learn search

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <fun>
 
#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "EFFx"
 
#define VIP_ACCESS ADMIN_LEVEL_H
 
enum(+= 1000)
{
 
TASK_MESSAGE
}
 
new 
szHudShow
 
new cvar_vip_kill_hp,cvar_vip_kill_hp_hs
new cvar_vip_kill_money,cvar_vip_kill_money_hs
new cvar_vip_show_format
 
public plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
szHudShow CreateHudSyncObj()
 
cvar_vip_show_format register_cvar("vip_show_format","0")
 
cvar_vip_kill_hp register_cvar("vip_kill_hp","10")
 
cvar_vip_kill_hp_hs register_cvar("vip_kill_hp_hs","20")
 
cvar_vip_kill_money register_cvar("vip_kill_money","200"// +300 by default game bonus
 
cvar_vip_kill_money_hs register_cvar("vip_kill_money_hs","700")// +300 by default game bonus
 
register_event("DeathMsg","VipKiller","a")
 
RegisterHam(Ham_Spawn,"player","VIPSpawn",1)
}
public 
plugin_precache()
{
 
precache_model("models/player/VipModelCT/VipModelCT.mdl")
 
precache_model("models/player/VipModelT/VipModelT.mdl")
}
public 
client_putinserver(id)
{
 if(
get_user_flags(id) & VIP_ACCESS)
 {
  
set_task(2.0,"ShowVIPConnected",id+TASK_MESSAGE)
 }
}
public 
ShowVIPConnected(id)
{
 switch(
get_pcvar_num(cvar_vip_show_format))
 {
  case 
0:
  {
   new 
szNameVIP[33]
   
get_user_name(id,szNameVIP,32)
   
client_print(0,print_chat,"[VIP]: VIP %s has joined in the server!",szNameVIP)
   
client_cmd(0,"spk buttons/bell1")
  }
  case 
1:
  {
   new 
szNameVIP[33]
   
get_user_name(id,szNameVIP,32)
   
set_hudmessage(000,255,000,-1.0,0.20,0,1.0,6.0)
   
ShowSyncHudMsg(0,szHudShow,"VIP %s has joined in the server!",szNameVIP)
   
client_cmd(0,"spk buttons/bell1")
  }
 }
}
public 
VipKiller()
{
 new 
iVipKiller read_data(1)
 new 
iVictim read_data(2)
 if(
iVipKiller != iVictim)
 {
  if(
get_user_flags(iVipKiller) & VIP_ACCESS)
  {
   new 
szNameVIP[33]
   
get_user_name(iVipKiller,szNameVIP,32)
   
client_print(iVictim,print_center,"VIP %s has killed you!",szNameVIP)
  
   if(
read_data(3))
   {
    
set_user_health(iVipKiller,get_user_health(iVipKiller) + get_pcvar_num(cvar_vip_kill_hp_hs))
    
cs_set_user_money(iVipKiller,cs_get_user_money(iVipKiller) + get_pcvar_num(cvar_vip_kill_money_hs))
   }
   else
   {
    
set_user_health(iVipKiller,get_user_health(iVipKiller) + get_pcvar_num(cvar_vip_kill_hp))
    
cs_set_user_money(iVipKiller,cs_get_user_money(iVipKiller) + get_pcvar_num(cvar_vip_kill_money))
   }
  }
 }
}
public 
VIPSpawn(id)
{
 if(
get_user_flags(id) & VIP_ACCESS)
 {
  
ShowVIPWeapons(id)
  
give_item(id,"weapon_hegrenade")
  
give_item(id,"weapon_smokegrenade")
  
give_item(id,"weapon_flashbang")
  
cs_set_user_bpammo(id,CSW_FLASHBANG,2)
  
  new 
currentmodel[32]
  
cs_get_user_model(id,currentmodel,charsmax(currentmodel))
  
  if(
get_user_team(id) == 2)
   
cs_set_user_model(id,"VIPModelCT")
  else if(
get_user_team(id) == 1)
   
cs_set_user_model(id,"VIPModelT")
 }
}
public 
ShowVIPWeapons(id)
{
 new 
vipmenu menu_create("VIP Weapons","vip_weapons_handler")
 
menu_additem(vipmenu,"AK47+DEAGLE")
 
menu_additem(vipmenu,"M4A1+DEAGLE")
 
menu_display(id,vipmenu)
}
public 
vip_weapons_handler(id,menu,item)
{
 if(
item == MENU_EXIT)
 {
  
menu_destroy(menu)
  return 
PLUGIN_HANDLED
 
}
 switch(
item)
 {
  case 
0:
  {
   
strip_user_weapons(id)
   
give_item(id,"weapon_ak47")
   
give_item(id,"weapon_deagle")
   
cs_set_user_bpammo(id,CSW_AK47,90)
   
cs_set_user_bpammo(id,CSW_DEAGLE,35)
  }
  case 
1:
  {
   
strip_user_weapons(id)
   
give_item(id,"weapon_m4a1")
   
give_item(id,"weapon_deagle")
   
cs_set_user_bpammo(id,CSW_AK47,90)
   
cs_set_user_bpammo(id,CSW_DEAGLE,35)
  }
 }
 return 
PLUGIN_HANDLED

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-10-2016 at 15:17.
EFFx is offline
Mr.@Rr0w
New Member
Join Date: Apr 2016
Old 04-10-2016 , 15:52   Re: vipmenu
Reply With Quote #3

Quote:
Originally Posted by EFFx View Post
Next time, learn search

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <fun>
 
#define PLUGIN "VIP"
#define VERSION "1.0"
#define AUTHOR "EFFx"
 
#define VIP_ACCESS ADMIN_LEVEL_H
 
enum(+= 1000)
{
 
TASK_MESSAGE
}
 
new 
szHudShow
 
new cvar_vip_kill_hp,cvar_vip_kill_hp_hs
new cvar_vip_kill_money,cvar_vip_kill_money_hs
new cvar_vip_show_format
 
public plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
szHudShow CreateHudSyncObj()
 
cvar_vip_show_format register_cvar("vip_show_format","0")
 
cvar_vip_kill_hp register_cvar("vip_kill_hp","10")
 
cvar_vip_kill_hp_hs register_cvar("vip_kill_hp_hs","20")
 
cvar_vip_kill_money register_cvar("vip_kill_money","200"// +300 by default game bonus
 
cvar_vip_kill_money_hs register_cvar("vip_kill_money_hs","700")// +300 by default game bonus
 
register_event("DeathMsg","VipKiller","a")
 
RegisterHam(Ham_Spawn,"player","VIPSpawn",1)
}
public 
plugin_precache()
{
 
precache_model("models/player/VipModelCT/VipModelCT.mdl")
 
precache_model("models/player/VipModelT/VipModelT.mdl")
}
public 
client_putinserver(id)
{
 if(
get_user_flags(id) & VIP_ACCESS)
 {
  
set_task(2.0,"ShowVIPConnected",id+TASK_MESSAGE)
 }
}
public 
ShowVIPConnected(id)
{
 switch(
get_pcvar_num(cvar_vip_show_format))
 {
  case 
0:
  {
   new 
szNameVIP[33]
   
get_user_name(id,szNameVIP,32)
   
client_print(0,print_chat,"[VIP]: VIP %s has joined in the server!",szNameVIP)
   
client_cmd(0,"spk buttons/bell1")
  }
  case 
1:
  {
   new 
szNameVIP[33]
   
get_user_name(id,szNameVIP,32)
   
set_hudmessage(000,255,000,-1.0,0.20,0,1.0,6.0)
   
ShowSyncHudMsg(0,szHudShow,"VIP %s has joined in the server!",szNameVIP)
   
client_cmd(0,"spk buttons/bell1")
  }
 }
}
public 
VipKiller()
{
 new 
iVipKiller read_data(1)
 new 
iVictim read_data(2)
 if(
iVipKiller != iVictim)
 {
  if(
get_user_flags(iVipKiller) & VIP_ACCESS)
  {
   new 
szNameVIP[33]
   
get_user_name(iVipKiller,szNameVIP,32)
   
client_print(iVictim,print_center,"VIP %s has killed you!",szNameVIP)
  
   if(
read_data(3))
   {
    
set_user_health(iVipKiller,get_user_health(iVipKiller) + get_pcvar_num(cvar_vip_kill_hp_hs))
    
cs_set_user_money(iVipKiller,cs_get_user_money(iVipKiller) + get_pcvar_num(cvar_vip_kill_money_hs))
   }
   else
   {
    
set_user_health(iVipKiller,get_user_health(iVipKiller) + get_pcvar_num(cvar_vip_kill_hp))
    
cs_set_user_money(iVipKiller,cs_get_user_money(iVipKiller) + get_pcvar_num(cvar_vip_kill_money))
   }
  }
 }
}
public 
VIPSpawn(id)
{
 if(
get_user_flags(id) & VIP_ACCESS)
 {
  
ShowVIPWeapons(id)
  
give_item(id,"weapon_hegrenade")
  
give_item(id,"weapon_smokegrenade")
  
give_item(id,"weapon_flashbang")
  
cs_set_user_bpammo(id,CSW_FLASHBANG,2)
  
  new 
currentmodel[32]
  
cs_get_user_model(id,currentmodel,charsmax(currentmodel))
  
  if(
get_user_team(id) == 2)
   
cs_set_user_model(id,"VIPModelCT")
  else if(
get_user_team(id) == 1)
   
cs_set_user_model(id,"VIPModelT")
 }
}
public 
ShowVIPWeapons(id)
{
 new 
vipmenu menu_create("VIP Weapons","vip_weapons_handler")
 
menu_additem(vipmenu,"AK47+DEAGLE")
 
menu_additem(vipmenu,"M4A1+DEAGLE")
 
menu_display(id,vipmenu)
}
public 
vip_weapons_handler(id,menu,item)
{
 if(
item == MENU_EXIT)
 {
  
menu_destroy(menu)
  return 
PLUGIN_HANDLED
 
}
 switch(
item)
 {
  case 
0:
  {
   
strip_user_weapons(id)
   
give_item(id,"weapon_ak47")
   
give_item(id,"weapon_deagle")
   
cs_set_user_bpammo(id,CSW_AK47,90)
   
cs_set_user_bpammo(id,CSW_DEAGLE,35)
  }
  case 
1:
  {
   
strip_user_weapons(id)
   
give_item(id,"weapon_m4a1")
   
give_item(id,"weapon_deagle")
   
cs_set_user_bpammo(id,CSW_AK47,90)
   
cs_set_user_bpammo(id,CSW_DEAGLE,35)
  }
 }
 return 
PLUGIN_HANDLED

thx you but you can give me the vip_menu.sma and vip_menu.amxx? please
Mr.@Rr0w is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-10-2016 , 15:53   Re: vipmenu
Reply With Quote #4

Quote:
Originally Posted by Mr.@Rr0w View Post
thx you but you can give me the vip_menu.sma and vip_menu.amxx? please
Here's
Attached Files
File Type: sma Get Plugin or Get Source (VIPP.sma - 541 views - 3.7 KB)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-10-2016 , 16:42   Re: vipmenu
Reply With Quote #5

@EFFx i try this plugin
when u choose the guns ur grenade and knife its disppared o.O.
models its work but do this pls.
why knife and grenade its removed?
HELP PLS !
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-10-2016 , 16:45   Re: vipmenu
Reply With Quote #6

Because i added he, flash, smoke and knife first and strip_user_weapons(id) after it, -_- i'm a bot.

Here's the download:
Attached Files
File Type: sma Get Plugin or Get Source (VIP.sma - 579 views - 3.9 KB)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-10-2016 at 17:02.
EFFx is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-10-2016 , 16:47   Re: vipmenu
Reply With Quote #7

and about AWP + deagle?
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-10-2016 , 16:47   Re: vipmenu
Reply With Quote #8

finis it and give him tha .sma and .amxx cause i think he dont know to do it
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-10-2016 , 16:55   Re: vipmenu
Reply With Quote #9

i find and when u choose a guns u got only 30 bullets . not full
u can do it for me too please !
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 04-10-2016 , 17:00   Re: vipmenu
Reply With Quote #10

and give vip with flag T . no H i dont want to give cfg to vips
please. i will do something for you. if u help me with it. him too!
__________________
a simple act of caring creates an endless ripple.
Nutu_ 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 21:13.


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