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

[req] bloodak 47


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yousuf khan
Member
Join Date: May 2019
Old 08-07-2020 , 02:09   [req] bloodak 47
Reply With Quote #1

[ BAD ENGLISH ]
Hi.
I Need BLOOD AK47 Plugin This Weapon Have Bigger Damage Against Normal Weapons.
I Need Best Skin For It. ( If AnyOne Give )
Command: /bloodak

Can AnyOne Make This PLugin And Upload It With Model Files?
yousuf khan is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-07-2020 , 02:26   Re: [req] bloodak 47
Reply With Quote #2

Quote:
Originally Posted by yousuf khan View Post
[ BAD ENGLISH ]
Hi.
I Need BLOOD AK47 Plugin This Weapon Have Bigger Damage Against Normal Weapons.
I Need Best Skin For It. ( If AnyOne Give )
Command: /bloodak

Can AnyOne Make This PLugin And Upload It With Model Files?
PHP Code:

new const PREFIX[] = { "&x01[&x04BloodAk&x01]" };

#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#include <amxmisc>
#include <cromchat>

#define is_valid_player(%1) (1 <= %1 <= 32)

new AK_V_MODEL[64] = "models/ExtraItems/v_blood_ak47.mdl"
new AK_P_MODEL[64] = "models/ExtraItems/p_blood_ak47.mdl"

/* Pcvars */
new cvar_dmgmultipliercvar_goldbullets,  cvar_custommodelcvar_uclipcvar_cost

new bool:g_HasAk[33]

new 
g_hasZoom33 ]
new 
bullets33 ]

// Sprite
new m_spriteTexture

const Wep_ak47 = ((1<<CSW_AK47))

public 
plugin_init()
{
    
    
/* CVARS */
    
cvar_dmgmultiplier register_cvar("bloodak_dmg_multiplier""2")
    
cvar_custommodel register_cvar("bloodak_custom_model""1")
    
cvar_goldbullets register_cvar("bloodak_gold_bullets""1")
    
cvar_uclip register_cvar("bloodak_unlimited_clip""0")
    
cvar_cost register_cvar("bloodak_cost""14000")
    
    
// Register The Buy Cmd
    
register_clcmd("say /bloodak""CmdBuyAk")
    
register_clcmd("say_team /bloodak""CmdBuyAk")
    
register_concmd("amx_bloodak""CmdGiveAk"ADMIN_LEVEL_A"<name>")
    
    
    
// Register The Plugin
    
register_plugin("Golden Ak 47""1.0""AlejandroSk")
    
// Death Msg
    
register_event("DeathMsg""Death""a")
    
// Weapon Pick Up
    
register_event("WeapPickup","checkModel","b","1=19")
    
// Current Weapon Event
    
register_event("CurWeapon","checkWeapon","be","1=1")
    
register_event("CurWeapon""make_tracer""be""1=1""3>0")
    
// Ham TakeDamage
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
    
register_forwardFM_CmdStart"fw_CmdStart" )
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
    
}

public 
client_connect(id)
{
    
g_HasAk[id] = false
}

public 
client_disconnect(id)
{
    
g_HasAk[id] = false
}

public 
Death()
{
    
g_HasAk[read_data(2)] = false
}

public 
fwHamPlayerSpawnPost(id)
{
    
g_HasAk[id] = false
}

public 
plugin_precache()
{
    
precache_model(AK_V_MODEL)
    
precache_model(AK_P_MODEL)
    
m_spriteTexture precache_model("sprites/dot.spr")
    
precache_sound("weapons/zoom.wav")
}

public 
checkModel(id)
{
    if ( !
g_HasAk[id] )
        return 
PLUGIN_HANDLED
    
    
new szWeapID read_data(2)
    
    if ( 
szWeapID == CSW_AK47 && g_HasAk[id] == true && get_pcvar_num(cvar_custommodel) )
    {
        
set_pev(idpev_viewmodel2AK_V_MODEL)
        
set_pev(idpev_weaponmodel2AK_P_MODEL)
    }
    return 
PLUGIN_HANDLED
}

public 
checkWeapon(id)
{
    new 
plrClipplrAmmoplrWeap[32]
    new 
plrWeapId
    
    plrWeapId 
get_user_weapon(idplrClip plrAmmo)
    
    if (
plrWeapId == CSW_AK47 && g_HasAk[id])
    {
        
checkModel(id)
    }
    else 
    {
        return 
PLUGIN_CONTINUE
    
}
    
    if (
plrClip == && get_pcvar_num(cvar_uclip))
    {
        
// If the user is out of ammo..
        
get_weaponname(plrWeapIdplrWeap31)
        
// Get the name of their weapon
        
give_item(idplrWeap)
        
engclient_cmd(idplrWeap
        
engclient_cmd(idplrWeap)
        
engclient_cmd(idplrWeap)
    }
    return 
PLUGIN_HANDLED
}



public 
fw_TakeDamage(victiminflictorattackerFloat:damage)
{
    if ( 
is_valid_playerattacker ) && get_user_weapon(attacker) == CSW_AK47 && g_HasAk[attacker] )
    {
        
SetHamParamFloat(4damage get_pcvar_floatcvar_dmgmultiplier ) )
    }
}

public 
fw_CmdStartiduc_handleseed )
{
    if( !
is_user_aliveid ) ) 
        return 
PLUGIN_HANDLED
    
    
if( ( get_ucuc_handleUC_Buttons ) & IN_ATTACK2 ) && !( pevidpev_oldbuttons ) & IN_ATTACK2 ) )
    {
        new 
szClipszAmmo
        
new szWeapID get_user_weaponidszClipszAmmo )
        
        if( 
szWeapID == CSW_AK47 && g_HasAk[id] == true && !g_hasZoom[id] == true)
        {
            
g_hasZoom[id] = true
            cs_set_user_zoom
idCS_SET_AUGSG552_ZOOM)
            
emit_soundidCHAN_ITEM"weapons/zoom.wav"0.202.400100 )
        }
        
        else if ( 
szWeapID == CSW_AK47 && g_HasAk[id] == true && g_hasZoom[id])
        {
            
g_hasZoomid ] = false
            cs_set_user_zoom
idCS_RESET_ZOOM)
            
        }
        
    }
    return 
PLUGIN_HANDLED
}


public 
make_tracer(id)
{
    if (
get_pcvar_num(cvar_goldbullets))
    {
        new 
clip,ammo
        
new wpnid get_user_weapon(id,clip,ammo)
        new 
pteam[16]
        
        
get_user_team(idpteam15)
        
        if ((
bullets[id] > clip) && (wpnid == CSW_AK47) && g_HasAk[id]) 
        {
            new 
vec1[3], vec2[3]
            
get_user_origin(idvec11// origin; your camera point.
            
get_user_origin(idvec24// termina; where your bullet goes (4 is cs-only)
            
            
            //BEAMENTPOINTS
            
message_beginMSG_BROADCAST,SVC_TEMPENTITY)
            
write_byte (0)     //TE_BEAMENTPOINTS 0
            
write_coord(vec1[0])
            
write_coord(vec1[1])
            
write_coord(vec1[2])
            
write_coord(vec2[0])
            
write_coord(vec2[1])
            
write_coord(vec2[2])
            
write_shortm_spriteTexture )
            
write_byte(1// framestart
            
write_byte(5// framerate
            
write_byte(2// life
            
write_byte(10// width
            
write_byte(0// noise
            
write_byte255 )     // r, g, b
            
write_byte)       // r, g, b
            
write_byte)       // r, g, b
            
write_byte(200// brightness
            
write_byte(150// speed
            
message_end()
        }
        
        
bullets[id] = clip
    
}
    
}

public 
CmdBuyAk(id)
{
    if ( !
is_user_alive(id) )
    {
        
CC_SendMatched(idCC_COLOR_TEAM"%s You must be alive to buy this Item!"PREFIX);
        return 
PLUGIN_HANDLED
    
}
    if ( 
g_HasAk[id] )
    {
        
CC_SendMatched(idCC_COLOR_TEAM"%s You already have bought this item!"PREFIX);
        return 
PLUGIN_HANDLED
    
}
    
    new 
money cs_get_user_money(id)
    
    if (
money >= get_pcvar_num(cvar_cost))
    {
        
cs_set_user_money(idmoney get_pcvar_num(cvar_cost))
        
CC_SendMatched(idCC_COLOR_TEAM"%s You have bought &x04Blood AK47&x01!"PREFIX);
        
give_item(id"weapon_ak47")
        
g_HasAk[id] = true
    
}
    
    else
    {
        
CC_SendMatched(idCC_COLOR_TEAM"%s You dont have enough money to buy this item!"PREFIX);
    }
    
    return 
PLUGIN_HANDLED
}

public 
CmdGiveAk(id,level,cid)
{
    if (!
cmd_access(id,level,cid,2))
        return 
PLUGIN_HANDLED;
    new 
arg[32];
    
read_argv(1,arg,31);
    
    new 
player cmd_target(id,arg,7);
    if (!
player
        return 
PLUGIN_HANDLED;
    
    new 
name[32];
    
get_user_name(player,name,31);
    
    if (
g_HasAk[player])
    {
        
CC_SendMatched(idCC_COLOR_TEAM"%s Player &x04%s&x01 already have the &x04Blood Ak47&x01."PREFIXname);
        return 
PLUGIN_HANDLED;
    }
    
    
give_item(player"weapon_ak47")
    
    
CC_SendMatched(playerCC_COLOR_TEAM"&x01[ADMIN] &x04%s&x01 has given you &x05Blood Ak47"name);
    
g_HasAk[player] = true
    
    
return PLUGIN_HANDLED
}

stock drop_prim(id
{
    new 
weapons[32], num
    get_user_weapons
(idweaponsnum)
    for (new 
0numi++) {
        if (
Wep_ak47 & (1<<weapons[i])) 
        {
            static 
wname[32]
            
get_weaponname(weapons[i], wnamesizeof wname 1)
            
engclient_cmd(id"drop"wname)
        }
    }

You need to download cromchat to complier it
https://forums.alliedmods.net/showthread.php?p=2503655
Supremache is offline
yousuf khan
Member
Join Date: May 2019
Old 08-07-2020 , 05:01   Re: [req] bloodak 47
Reply With Quote #3

Bro?
Can You Give Me Model Link?
yousuf khan is offline
yousuf khan
Member
Join Date: May 2019
Old 08-07-2020 , 05:03   Re: [req] bloodak 47
Reply With Quote #4

Any Good Skin Like BloodAK [ CSO ]
yousuf khan is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-07-2020 , 08:04   Re: [req] bloodak 47
Reply With Quote #5

Quote:
Originally Posted by yousuf khan View Post
Any Good Skin Like BloodAK [ CSO ]
https://gamebanana.com/skins/145522
Supremache 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 03:38.


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