Raised This Month: $32 Target: $400
 8% 

[Req] Plugin for Bug


Post New Thread Reply   
 
Thread Tools Display Modes
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 11-11-2018 , 06:19   Re: [Req] Plugin for Bug
Reply With Quote #21

my all sma files = https://www.mediafire.com/file/3aclo...pting.rar/file
Mikaeel123 is offline
Mr.J
Senior Member
Join Date: Sep 2017
Location: cs_assault
Old 11-12-2018 , 09:37   Re: [Req] Plugin for Bug
Reply With Quote #22

try this :
Attached Files
File Type: sma Get Plugin or Get Source (jailbreakmodbeta.sma - 174 views - 232.2 KB)
Mr.J is offline
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 11-14-2018 , 06:50   Re: [Req] Plugin for Bug
Reply With Quote #23

i Find BUG!!!!!!!!
This plugin have Mp_falldamage !!!!
VIp_JailBreak / Thanks all .
Mikaeel123 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-14-2018 , 08:05   Re: [Req] Plugin for Bug
Reply With Quote #24

Quote:
Originally Posted by Mikaeel123 View Post
i Find BUG!!!!!!!!
This plugin have Mp_falldamage !!!!
VIp_JailBreak / Thanks all .
i told you to try ;)
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 11-14-2018 , 08:07   Re: [Req] Plugin for Bug
Reply With Quote #25

Quote:
i told you to try ;)
thank you so much
Mikaeel123 is offline
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 11-16-2018 , 07:19   Re: [Req] Plugin for Bug
Reply With Quote #26

I want remove Mp fall damage to this plugin . but when remove code plugin get bug . can remove pls ?
Quote:
/* Plugin generated by AMXX-Studio
Special thanks:
HoBaK - For idea of the plugin.
<VeCo> - for help on the code.
Huku# - Test of plugin.
Taurus# - Test of plugin.
SCREAM. - Test of plugin.
*/

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

#define VERSION "1.0"
#define TAG "[VIP Shop]"
new g_const_colors[][3] =
{
{255,0,0},
{0,255,0},
{0,0,255},
{255,255,0},
{255,0,255},
{0,255,255},
{0,128,255},
{255,255,255},
{255,128,0},
{128,0,255}
}

new
vip_deagle_cost,
vip_he_cost,
vip_flash_cost,
vip_smoke_cost,
vip_flash_ammo,
vip_he_ammo,
vip_smoke_ammo,
g_start_vipjbp,
vip_jbpacks_kill,
vip_jbpacks_kill_hs,
vip_norm_kill_armor,
vip_norm_kill_hp,
vip_hs_kill_armor,
vip_hs_kill_hp,
vip_bullet_dmg,
syncObj,
vip_dmg_power,
glow_time,
g_jbpacks[33],
current_color[33]

public plugin_init() {
register_plugin("[JB] VIP Shop", VERSION, "HoBaK")
register_clcmd("say /vshop", "vip_shop_menu", ADMIN_LEVEL_H, "VIP Shop For JailBreak")
register_clcmd("say_team /vshop", "vip_shop_menu", ADMIN_LEVEL_H, "VIP Shop For JailBreak")
register_clcmd("say /vipshop", "vip_shop_menu", ADMIN_LEVEL_H, "VIP Shop For JailBreak")
register_clcmd("say_team /vipshop", "vip_shop_menu", ADMIN_LEVEL_H, "VIP Shop For JailBreak")

register_event("DeathMsg", "event_death", "a")
register_event("Damage","event_damage","b","2 !0")
RegisterHam(Ham_TakeDamage,"player","player_t ake_damage")
/* Cvars */
vip_deagle_cost = register_cvar("jbe_vip_deagle_cost", "10")
vip_he_cost = register_cvar("jbe_vip_he_cost", "4")
vip_flash_cost = register_cvar("jbe_vip_flash_cost", "6")
vip_smoke_cost = register_cvar("jbe_vip_smoke_cost", "2")
vip_flash_ammo = register_cvar("jbe_vip_flash_ammo", "4")
vip_he_ammo = register_cvar("jbe_vip_he_ammo", "2")
vip_smoke_ammo = register_cvar("jbe_vip_smoke_ammo", "1")
g_start_vipjbp = register_cvar("jbe_vip_start_jbpacks", "7")
vip_jbpacks_kill = register_cvar("jbe_vip_kill_packs", "5")
vip_jbpacks_kill_hs = register_cvar("jbe_vip_kill_hs_packs", "10")
vip_norm_kill_hp = register_cvar("jbe_norm_kill_hp", "5")
vip_norm_kill_armor = register_cvar("jbe_norm_kill_armor", "5")
vip_hs_kill_hp = register_cvar("jbe_hs_kill_hp", "10")
vip_hs_kill_armor = register_cvar("jbe_hs_kill_armor", "10")
vip_bullet_dmg = register_cvar("jbe_vip_bullet_dmg", "1")
vip_dmg_power = register_cvar("jbe_vip_dmg_power", "2.0")
glow_time = register_cvar("jbe_vip_glow_time", "5.0")

set_task(1.0,"JailbreakVIPPacks", .flags = "b")
syncObj = CreateHudSyncObj()

set_task(get_pcvar_float(glow_time),"glow_cha nge", .flags = "b")
}

/* Give Health + Armor for headshot and for normal kill*/
public event_death()
{
static killer,headshot_check
killer = read_data(1)
headshot_check = read_data(3)

if(is_user_connected(killer) && (get_user_flags(killer) & ADMIN_LEVEL_H))
{
if(headshot_check)
{
g_jbpacks[killer] += get_pcvar_num(vip_jbpacks_kill_hs)
set_user_health(killer,get_user_health(killer ) + get_pcvar_num(vip_hs_kill_hp))
set_user_armor(killer,get_user_armor(killer) + get_pcvar_num(vip_hs_kill_armor))
ColorChat(killer, GREEN, "%s ^x01You get Health:%i and Armor:%i for kill in head", TAG, get_pcvar_num(vip_hs_kill_hp), get_pcvar_num(vip_hs_kill_armor))
}
else
{
g_jbpacks[killer] += get_pcvar_num(vip_jbpacks_kill)
set_user_health(killer,get_user_health(killer ) + get_pcvar_num(vip_norm_kill_hp))
set_user_armor(killer,get_user_armor(killer) + get_pcvar_num(vip_norm_kill_armor))
ColorChat(killer, GREEN, "%s ^x01You get Health:%i and Armor:%i for normal kill", TAG, get_pcvar_num(vip_norm_kill_hp), get_pcvar_num(vip_norm_kill_armor))
}
}
}

/* VIP No Fall DMG + 2x DMG on CT */
public player_take_damage(victim,inflictor,attacker, Float:damage, damage_bits)
{
if(damage_bits & DMG_FALL) return HAM_SUPERCEDE

if(is_user_connected(attacker) && get_user_flags(attacker) && ADMIN_LEVEL_H && cs_get_user_team(attacker) == CS_TEAM_CT)
{
SetHamParamFloat(4,damage * get_pcvar_num(vip_dmg_power))
}
return HAM_IGNORED
}

/* VIP Bullet Damage */
public event_damage(vip)
{
if(get_pcvar_num(vip_bullet_dmg) > 0)
{
new attacker =get_user_attacker(vip)
new damage = read_data(2)
if(get_user_flags(attacker) & ADMIN_LEVEL_H)
{
set_hudmessage(0, 100, 200, -1.0, 0.73, 2, 0.1, 4.0, 0.02, 0.02, 7)
show_hudmessage(attacker,"You deal:%i damage", damage)
}
}
}

/* VIP Shop Menu */
public vip_shop_menu(id, level, cid)
{
new menu
if(!cmd_access(id, level, cid,1))
{
ColorChat(id, GREEN, "%s ^x01 You don't have access to that command.", TAG)
}
else
{
if(cs_get_user_team(id) == CS_TEAM_T)
menu = menu_create("JB: VIP Shop Menu","vip_shop_menu_handler")
new menu_str[128]

formatex(menu_str,charsmax(menu_str),"Deagle ---> Cost:%i",get_pcvar_num(vip_deagle_cost))
menu_additem(menu,menu_str,"1")
formatex(menu_str,charsmax(menu_str),"He Grenade Ammo:%i ---> Cost:%i",get_pcvar_num(vip_he_ammo),get_pcvar _num(vip_he_cost))
menu_additem(menu,menu_str,"2")
formatex(menu_str,charsmax(menu_str),"FlashBa ngs Ammo:%i ---> Cost:%i",get_pcvar_num(vip_flash_ammo),get_pc var_num(vip_flash_cost))
menu_additem(menu,menu_str,"3")
formatex(menu_str,charsmax(menu_str),"Smoke Nades Ammo:%i ---> Cost:%i",get_pcvar_num(vip_smoke_ammo),get_pc var_num(vip_smoke_cost))
menu_additem(menu,menu_str,"4")

menu_display(id,menu)
}
}

public vip_shop_menu_handler(id,menu,item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}

new access,callback, info[4],name[32], get_info
menu_item_getinfo(menu,item, access, info,charsmax(info), name,charsmax(name), callback)

get_info = str_to_num(info)

switch(get_info)
{
case 1:
{
if (g_jbpacks[id]>= get_pcvar_num(vip_deagle_cost))
{
g_jbpacks[id] -= get_pcvar_num(vip_deagle_cost)
give_item(id, "weapon_deagle")
ColorChat(id, GREEN, "%s ^x01You get Deagle, ^x03[Good Luck]!", TAG)
}
else
{
ColorChat(id, GREEN, "%s ^x01You don't have JBPacks to buy Deagle, ^x03[Good Luck]!", TAG)
}
}
case 2:
{
if (g_jbpacks[id]>= get_pcvar_num(vip_he_cost))
{
g_jbpacks[id] -= get_pcvar_num(vip_he_cost)
give_item(id, "weapon_hegrenade") && cs_set_user_bpammo(id, CSW_HEGRENADE, get_pcvar_num(vip_he_ammo))
ColorChat(id, GREEN, "%s ^x01You get %i He Grande, ^x03[Good Luck]!", TAG, get_pcvar_num(vip_he_ammo))
}
else
{
ColorChat(id, GREEN, "%s ^x01You don't have JBPacks to buy He Granade, ^x03[Good Luck]!", TAG)
}
}
case 3:
{
if (g_jbpacks[id]>= get_pcvar_num(vip_flash_cost))
{
g_jbpacks[id] -= get_pcvar_num(vip_flash_cost)
give_item(id, "weapon_flashbang") && cs_set_user_bpammo(id, CSW_FLASHBANG, get_pcvar_num(vip_flash_ammo))
ColorChat(id, GREEN, "%s ^x01You get %i FlashBangs, ^x03[Good Luck]!", TAG, get_pcvar_num(vip_flash_ammo))
}
else
{
ColorChat(id, GREEN, "%s ^x01You don't have JBPacks to buy FlashBang, ^x03[Good Luck]!", TAG)
}
}
case 4:
{
if (g_jbpacks[id]>= get_pcvar_num(vip_smoke_cost))
{
g_jbpacks[id] -= get_pcvar_num(vip_smoke_cost)
give_item(id, "weapon_smokegrenade") && cs_set_user_bpammo(id, CSW_SMOKEGRENADE, get_pcvar_num(vip_smoke_ammo))
ColorChat(id, GREEN, "%s ^x01You get %i SmokeGrenade, ^x03[Good Luck]!", TAG, get_pcvar_num(vip_smoke_ammo))
}
else
{
ColorChat(id, GREEN, "%s ^x01You don't have JBPacks to buy Smoke Granade, ^x03[Good Luck]!", TAG)
}
}
}
menu_destroy(menu)
return PLUGIN_HANDLED
}

/* Activate the Hud message VIP JB Packs on VIP Player*/
public client_putinserver(id)
{
g_jbpacks[id] = get_pcvar_num(g_start_vipjbp)
}

/* The MSG VIP JBPacks this showing jbpacks*/
public JailbreakVIPPacks(id)
{
new players[32],num, i,id

get_players(players,num,"a")

for(i=0;i<num;i++)
{
id = players[i]
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
set_hudmessage(142, 239, 39, 0.85, 0.73, 0, 6.0, 12.0)
ShowSyncHudMsg(id, syncObj,"VIP JBPacks: %i", g_jbpacks[id])
}
}
}

/* VIP Glow */
public glow_change(id)
{
new players[32],num, i,id, color

get_players(players,num,"a")

for(i=0;i<num;i++)
{
id = players[i]
if(get_user_flags(id) & ADMIN_LEVEL_H)
{
color = ++current_color[id]

if(color == sizeof g_const_colors) color = current_color[id] = 0

set_user_rendering(id, kRenderFxGlowShell, g_const_colors[color][0],g_const_colors[color][1],g_const_colors[color][2])
}
}
}
Mikaeel123 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-16-2018 , 08:54   Re: [Req] Plugin for Bug
Reply With Quote #27

here you go
PHP Code:
/* VIP No Fall DMG + 2x DMG on CT */
public player_take_damage(victim,inflictor,attackerFloat:damagedamage_bits)
{
if(
damage_bits DMG_FALL) return HAM_SUPERCEDE

if(is_user_connected(attacker) && get_user_flags(attacker) && ADMIN_LEVEL_H && cs_get_user_team(attacker) == CS_TEAM_CT)
{
SetHamParamFloat(4,damage get_pcvar_num(vip_dmg_power))
}
return 
HAM_IGNORED

__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 11-16-2018 , 09:06   Re: [Req] Plugin for Bug
Reply With Quote #28

i deleted this place but plugin not worked
Mikaeel123 is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 11-16-2018 , 09:15   Re: [Req] Plugin for Bug
Reply With Quote #29

If you only want to leave the damage by falling without caring for the 2x damage of the vips the code stays:
Code:
/* VIP No Fall DMG + 2x DMG on CT */
public player_take_damage(victim,inflictor,attacker, Float:damage, damage_bits)
{
if(is_user_connected(attacker) && get_user_flags(attacker) && ADMIN_LEVEL_H && cs_get_user_team(attacker) == CS_TEAM_CT)
{
SetHamParamFloat(4,damage * get_pcvar_num(vip_dmg_power))
}
return HAM_IGNORED
}
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 11-16-2018 at 09:16.
iceeedr is offline
Send a message via Skype™ to iceeedr
Mikaeel123
Senior Member
Join Date: Oct 2018
Old 11-16-2018 , 09:32   Re: [Req] Plugin for Bug
Reply With Quote #30

not compiled
Mikaeel123 is offline
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 18:51.


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