Post by natahi on Aug 1, 2017 9:25:46 GMT
Hi guy's!
today im gonna share this tutireal!
at begin open your zp.sma.
for ZP4.0\4.3
find this line :
it has this code :
replace all to this :
--------------------------------------------------------------------------------------------------------------------
For ZPA 1.6.1
agin find this line :
it has this code :
replace all code to this :
today im gonna share this tutireal!
at begin open your zp.sma.
for ZP4.0\4.3
find this line :
// Current Weapon info
it has this code :
// Current Weapon info
public message_cur_weapon(msg_id, msg_dest, msg_entity)
{
// Not alive or zombie
if (!g_isalive[msg_entity] || g_zombie[msg_entity])
return;
// Not an active weapon
if (get_msg_arg_int(1) != 1)
return;
// Unlimited clip disabled for class
if (g_survivor[msg_entity] ? get_pcvar_num(cvar_survinfammo) <= 1 : get_pcvar_num(cvar_infammo) <= 1)
return;
// Get weapon's id
static weapon
weapon = get_msg_arg_int(2)
// Unlimited Clip Ammo for this weapon?
if (MAXBPAMMO[weapon] > 2)
{
// Max out clip ammo
static weapon_ent
weapon_ent = fm_cs_get_current_weapon_ent(msg_entity)
if (pev_valid(weapon_ent)) cs_set_weapon_ammo(weapon_ent, MAXCLIP[weapon])
// HUD should show full clip all the time
set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon])
}
}
replace all to this :
// Current Weapon info
public message_cur_weapon(msg_id, msg_dest, msg_entity)
{
// Not alive or zombie
if (!g_isalive[msg_entity] || g_zombie[msg_entity])
return;
// Not an active weapon
if (get_msg_arg_int(1) != 1)
return;
// Unlimited clip disabled for class
if (g_survivor[msg_entity] ? get_pcvar_num(cvar_survinfammo) <= 1 : get_pcvar_num(cvar_infammo) <= 1)
return;
// Get weapon's id
static weapon, clip
weapon = get_msg_arg_int(2)
clip = get_msg_arg_int(3)
// Unlimited Clip Ammo for this weapon?
if (MAXBPAMMO[weapon] > 2)
{
if (clip < 2) // refill when clip is nearly empty
{
// Max out clip ammo
cs_set_weapon_ammo(fm_cs_get_current_weapon_ent(msg_entity), MAXCLIP[weapon])
}
}
}
--------------------------------------------------------------------------------------------------------------------
For ZPA 1.6.1
agin find this line :
// Current Weapon info
it has this code :
// Current Weapon info
public message_cur_weapon(msg_id, msg_dest, msg_entity)
{
// Not alive or zombie
if (!g_isalive[msg_entity] || g_zombie[msg_entity])
return;
// Not an active weapon
if (get_msg_arg_int(1) != 1)
return;
// Unlimited clip disabled for class
if (g_survivor[msg_entity] ? get_pcvar_num(cvar_survinfammo) <= 1 : get_pcvar_num(cvar_infammo) <= 1 && g_sniper[msg_entity] ? get_pcvar_num(cvar_sniperinfammo) <= 1 : get_pcvar_num(cvar_infammo) <= 1)
return;
// Get weapon's id
static weapon
weapon = get_msg_arg_int(2)
// Unlimited Clip Ammo for this weapon?
if (MAXBPAMMO[weapon] > 2)
{
// Max out clip ammo
cs_set_weapon_ammo(fm_cs_get_current_weapon_ent(msg_entity), MAXCLIP[weapon])
// HUD should show full clip all the time
set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon])
}
}
replace all code to this :
// Current Weapon info
public message_cur_weapon(msg_id, msg_dest, msg_entity)
{
// Not alive or zombie
if (!g_isalive[msg_entity] || g_zombie[msg_entity])
return;
// Not an active weapon
if (get_msg_arg_int(1) != 1)
return;
// Unlimited clip disabled for class
if (g_survivor[msg_entity] ? get_pcvar_num(cvar_survinfammo) <= 1 : get_pcvar_num(cvar_infammo) <= 1 && g_sniper[msg_entity] ? get_pcvar_num(cvar_sniperinfammo) <= 1 : get_pcvar_num(cvar_infammo) <= 1)
return;
// Get weapon's id
static weapon, clip
weapon = get_msg_arg_int(2)
clip = get_msg_arg_int(3) // get weapon clip
// Unlimited Clip Ammo for this weapon?
if (MAXBPAMMO[weapon] > 2)
{
if (clip < 2) // refill when clip is nearly empty
{
// Max out clip ammo
cs_set_weapon_ammo(fm_cs_get_current_weapon_ent(msg_entity), MAXCLIP[weapon])
}
// HUD should show full clip all the time
//set_msg_arg_int(3, get_msg_argtype(3), MAXCLIP[weapon])
}
}