Segmentation fault
Segmentation fault
am using ZE V1.5 and i always faced this crash with reason "Segmentation fault" No Any Error just " Segmentation fault " in kgb host
DRK Zombie-Escape V1.6
IP : 81.169.153.129:27015
IP : 81.169.153.129:27015
The crash occurs when you try starting the server? Or it sometimes occur?
He who fails to plan is planning to fail
sometimes ... but when i stoped this plugin is don`t crash any more
this plugin have problem ?
Code: Select all
#include <zombie_escape>
#include <ze_levels>
#include <ze_vip>
// Models
new const g_szKnife1[][] =
{
"models/cg/v_knife_griff.mdl",
"models/cg/p_knife_griff1.mdl"
}
new const g_szKnife2[][] =
{
"models/cg/v_flip_t.mdl",
"models/cg/p_flip_t.mdl"
}
new const g_szKnife3[][] =
{
"models/cg/v_butterfly_knife.mdl",
"models/cg/p_butterfly_knife.mdl"
}
new const g_szKnife4[][] =
{
"models/cg/v_bayonet.mdl",
"models/cg/p_bayonet.mdl"
}
new const g_szKnife5[][] =
{
"models/cg/v_knife_karambit.mdl",
"models/cg/p_knife_karambit.mdl"
}
new const g_szKnife6[][] =
{
"models/cg/v_knife_karambit.mdl",
"models/cg/p_knife_karambit.mdl"
}
new const g_szKnife7[][] =
{
"models/cg/v_knifew.mdl",
"models/cg/p_knifew.mdl"
}
new const g_szKnife8[][] =
{
"models/cg/v_knifew.mdl",
"models/cg/p_knifew.mdl"
}
new const g_szKnifeV[][] =
{
"models/cg/v_knifev.mdl",
"models/cg/p_knifev.mdl"
}
// Sounds
new const g_szKnife1Sounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szKnife2Sounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szKnife3Sounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szKnife4Sounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szKnife5Sounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szKnife6Sounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szKnife7Sounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szKnife8Sounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szDefaultSounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
new const g_szKnifeVSounds[][] =
{
"weapons/knife_deploy1.wav",
"weapons/knife_hit1.wav",
"weapons/knife_hit2.wav",
"weapons/knife_hit3.wav",
"weapons/knife_hit4.wav",
"weapons/knife_hitwall1.wav",
"weapons/knife_slash1.wav",
"weapons/knife_slash2.wav",
"weapons/knife_stab.wav"
}
// Models indexes
enum
{
V_Model = 0,
P_Model
}
public plugin_init()
{
register_plugin("Knife Levels", "1.0", "Raheem")
// Fakemeta
register_forward(FM_EmitSound, "Fw_EmitSound")
}
public plugin_precache()
{
new iIndex;
// Prechace models
for(iIndex = 0; iIndex <= charsmax(g_szKnife1); iIndex++)
precache_model(g_szKnife1[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnife2); iIndex++)
precache_model(g_szKnife2[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnife3); iIndex++)
precache_model(g_szKnife3[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnife4); iIndex++)
precache_model(g_szKnife4[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnife5); iIndex++)
precache_model(g_szKnife5[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnife6); iIndex++)
precache_model(g_szKnife6[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnife7); iIndex++)
precache_model(g_szKnife7[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnife8); iIndex++)
precache_model(g_szKnife8[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnifeV); iIndex++)
precache_model(g_szKnifeV[iIndex])
// Prechace sounds
for(iIndex = 0; iIndex <= charsmax(g_szKnife1Sounds); iIndex++)
precache_sound(g_szKnife1Sounds[iIndex])
for(iIndex = 0; iIndex <= charsmax(g_szKnife1Sounds); iIndex++)
precache_sound(g_szKnife1Sounds[iIndex])
}
public ze_user_humanized(id)
{
if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 4)
{
// Player level from 1 to 5 set him this knife
cs_set_player_view_model(id, CSW_KNIFE, g_szKnife1[V_Model])
cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife1[P_Model])
ResetKnife(id)
}
else if (ze_get_user_level(id) >= 5 && ze_get_user_level(id) < 9)
{
// Player level from 5 to 8 set him this knife
cs_set_player_view_model(id, CSW_KNIFE, g_szKnife2[V_Model])
cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife2[P_Model])
ResetKnife(id)
}
else if (ze_get_user_level(id) >= 10 && ze_get_user_level(id) < 14)
{
// Player level from 5 to 8 set him this knife
cs_set_player_view_model(id, CSW_KNIFE, g_szKnife3[V_Model])
cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife3[P_Model])
ResetKnife(id)
}
else if (ze_get_user_level(id) >= 15 && ze_get_user_level(id) < 19)
{
// Player level from 5 to 8 set him this knife
cs_set_player_view_model(id, CSW_KNIFE, g_szKnife4[V_Model])
cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife4[P_Model])
ResetKnife(id)
}
else if (ze_get_user_level(id) >= 20 && ze_get_user_level(id) < 24)
{
// Player level from 26 to 30 set him this knife
cs_set_player_view_model(id, CSW_KNIFE, g_szKnife5[V_Model])
cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife5[P_Model])
ResetKnife(id)
}
else if (ze_get_user_level(id) >= 25 && ze_get_user_level(id) < 29)
{
// Player level from 26 to 30 set him this knife
cs_set_player_view_model(id, CSW_KNIFE, g_szKnife6[V_Model])
cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife6[P_Model])
ResetKnife(id)
}
else if (ze_get_user_level(id) >= 30 && ze_get_user_level(id) < 50)
{
// Player level from 26 to 30 set him this knife
cs_set_player_view_model(id, CSW_KNIFE, g_szKnife7[V_Model])
cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife7[P_Model])
ResetKnife(id)
}
else if (ze_get_vip_flags(id) & VIP_A)
{
// Player level from 26 to 30 set him this knife
cs_set_player_view_model(id, CSW_KNIFE, g_szKnifeV[V_Model])
cs_set_player_weap_model(id, CSW_KNIFE, g_szKnifeV[P_Model])
ResetKnife(id)
}
}
public ResetKnife(id)
{
rg_remove_item(id, "weapon_knife")
rg_give_item(id, "weapon_knife", GT_APPEND)
engclient_cmd(id, "weapon_knife")
emit_sound(id, CHAN_BODY, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
}
public Fw_EmitSound(id, iChannel, const szSound[])
{
if(!is_user_alive(id) || ze_is_user_zombie(id))
return FMRES_IGNORED
if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 0)
{
for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
{
if (equal(g_szDefaultSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnife1Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
else if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 5)
{
for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
{
if (equal(g_szDefaultSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnife2Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
else if (ze_get_user_level(id) >= 5 && ze_get_user_level(id) < 9)
{
for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
{
if (equal(g_szDefaultSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnife3Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
else if (ze_get_user_level(id) >= 10 && ze_get_user_level(id) < 14)
{
for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
{
if (equal(g_szDefaultSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnife4Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
else if (ze_get_user_level(id) >= 15 && ze_get_user_level(id) < 20)
{
for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
{
if (equal(g_szDefaultSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnife5Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
else if (ze_get_user_level(id) >= 21 && ze_get_user_level(id) < 30)
{
for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
{
if (equal(g_szDefaultSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnife6Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
else if (ze_get_user_level(id) >= 31 && ze_get_user_level(id) < 40)
{
for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
{
if (equal(g_szDefaultSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnife7Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
else if (ze_get_user_level(id) >= 49 && ze_get_user_level(id) < 50)
{
for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
{
if (equal(g_szDefaultSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnife8Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
else if (ze_get_vip_flags(id) & VIP_E)
{
for(new iIndex = 0; iIndex <= charsmax(g_szKnifeVSounds); iIndex++)
{
if (equal(g_szKnifeVSounds[iIndex], szSound))
{
emit_sound(id, iChannel, g_szKnifeVSounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
}
}
return FMRES_IGNORED
}
DRK Zombie-Escape V1.6
IP : 81.169.153.129:27015
IP : 81.169.153.129:27015
Although the code is simple and seems it may not the cause but I checked is user alive in two functions, try maybe it helps:
Issue can be from models themselves also, so not only the code which can cause it.
- #include <zombie_escape>
- #include <ze_levels>
- #include <ze_vip>
- // Models
- new const g_szKnife1[][] =
- {
- "models/cg/v_knife_griff.mdl",
- "models/cg/p_knife_griff1.mdl"
- }
- new const g_szKnife2[][] =
- {
- "models/cg/v_flip_t.mdl",
- "models/cg/p_flip_t.mdl"
- }
- new const g_szKnife3[][] =
- {
- "models/cg/v_butterfly_knife.mdl",
- "models/cg/p_butterfly_knife.mdl"
- }
- new const g_szKnife4[][] =
- {
- "models/cg/v_bayonet.mdl",
- "models/cg/p_bayonet.mdl"
- }
- new const g_szKnife5[][] =
- {
- "models/cg/v_knife_karambit.mdl",
- "models/cg/p_knife_karambit.mdl"
- }
- new const g_szKnife6[][] =
- {
- "models/cg/v_knife_karambit.mdl",
- "models/cg/p_knife_karambit.mdl"
- }
- new const g_szKnife7[][] =
- {
- "models/cg/v_knifew.mdl",
- "models/cg/p_knifew.mdl"
- }
- new const g_szKnife8[][] =
- {
- "models/cg/v_knifew.mdl",
- "models/cg/p_knifew.mdl"
- }
- new const g_szKnifeV[][] =
- {
- "models/cg/v_knifev.mdl",
- "models/cg/p_knifev.mdl"
- }
- // Sounds
- new const g_szKnife1Sounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szKnife2Sounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szKnife3Sounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szKnife4Sounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szKnife5Sounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szKnife6Sounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szKnife7Sounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szKnife8Sounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szDefaultSounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- new const g_szKnifeVSounds[][] =
- {
- "weapons/knife_deploy1.wav",
- "weapons/knife_hit1.wav",
- "weapons/knife_hit2.wav",
- "weapons/knife_hit3.wav",
- "weapons/knife_hit4.wav",
- "weapons/knife_hitwall1.wav",
- "weapons/knife_slash1.wav",
- "weapons/knife_slash2.wav",
- "weapons/knife_stab.wav"
- }
- // Models indexes
- enum
- {
- V_Model = 0,
- P_Model
- }
- public plugin_init()
- {
- register_plugin("Knife Levels", "1.0", "Raheem")
- // Fakemeta
- register_forward(FM_EmitSound, "Fw_EmitSound")
- }
- public plugin_precache()
- {
- new iIndex;
- // Prechace models
- for(iIndex = 0; iIndex <= charsmax(g_szKnife1); iIndex++)
- precache_model(g_szKnife1[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnife2); iIndex++)
- precache_model(g_szKnife2[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnife3); iIndex++)
- precache_model(g_szKnife3[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnife4); iIndex++)
- precache_model(g_szKnife4[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnife5); iIndex++)
- precache_model(g_szKnife5[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnife6); iIndex++)
- precache_model(g_szKnife6[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnife7); iIndex++)
- precache_model(g_szKnife7[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnife8); iIndex++)
- precache_model(g_szKnife8[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnifeV); iIndex++)
- precache_model(g_szKnifeV[iIndex])
- // Prechace sounds
- for(iIndex = 0; iIndex <= charsmax(g_szKnife1Sounds); iIndex++)
- precache_sound(g_szKnife1Sounds[iIndex])
- for(iIndex = 0; iIndex <= charsmax(g_szKnife1Sounds); iIndex++)
- precache_sound(g_szKnife1Sounds[iIndex])
- }
- public ze_user_humanized(id)
- {
- if(!is_user_alive(id))
- return
- if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 4)
- {
- // Player level from 1 to 5 set him this knife
- cs_set_player_view_model(id, CSW_KNIFE, g_szKnife1[V_Model])
- cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife1[P_Model])
- ResetKnife(id)
- }
- else if (ze_get_user_level(id) >= 5 && ze_get_user_level(id) < 9)
- {
- // Player level from 5 to 8 set him this knife
- cs_set_player_view_model(id, CSW_KNIFE, g_szKnife2[V_Model])
- cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife2[P_Model])
- ResetKnife(id)
- }
- else if (ze_get_user_level(id) >= 10 && ze_get_user_level(id) < 14)
- {
- // Player level from 5 to 8 set him this knife
- cs_set_player_view_model(id, CSW_KNIFE, g_szKnife3[V_Model])
- cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife3[P_Model])
- ResetKnife(id)
- }
- else if (ze_get_user_level(id) >= 15 && ze_get_user_level(id) < 19)
- {
- // Player level from 5 to 8 set him this knife
- cs_set_player_view_model(id, CSW_KNIFE, g_szKnife4[V_Model])
- cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife4[P_Model])
- ResetKnife(id)
- }
- else if (ze_get_user_level(id) >= 20 && ze_get_user_level(id) < 24)
- {
- // Player level from 26 to 30 set him this knife
- cs_set_player_view_model(id, CSW_KNIFE, g_szKnife5[V_Model])
- cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife5[P_Model])
- ResetKnife(id)
- }
- else if (ze_get_user_level(id) >= 25 && ze_get_user_level(id) < 29)
- {
- // Player level from 26 to 30 set him this knife
- cs_set_player_view_model(id, CSW_KNIFE, g_szKnife6[V_Model])
- cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife6[P_Model])
- ResetKnife(id)
- }
- else if (ze_get_user_level(id) >= 30 && ze_get_user_level(id) < 50)
- {
- // Player level from 26 to 30 set him this knife
- cs_set_player_view_model(id, CSW_KNIFE, g_szKnife7[V_Model])
- cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife7[P_Model])
- ResetKnife(id)
- }
- else if (ze_get_vip_flags(id) & VIP_A)
- {
- // Player level from 26 to 30 set him this knife
- cs_set_player_view_model(id, CSW_KNIFE, g_szKnifeV[V_Model])
- cs_set_player_weap_model(id, CSW_KNIFE, g_szKnifeV[P_Model])
- ResetKnife(id)
- }
- }
- public ResetKnife(id)
- {
- if(!is_user_alive(id))
- return
- rg_remove_item(id, "weapon_knife")
- rg_give_item(id, "weapon_knife", GT_APPEND)
- engclient_cmd(id, "weapon_knife")
- emit_sound(id, CHAN_BODY, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
- }
- public Fw_EmitSound(id, iChannel, const szSound[])
- {
- if(!is_user_alive(id) || ze_is_user_zombie(id))
- return FMRES_IGNORED
- if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 0)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
- {
- if (equal(g_szDefaultSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnife1Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- else if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 5)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
- {
- if (equal(g_szDefaultSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnife2Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- else if (ze_get_user_level(id) >= 5 && ze_get_user_level(id) < 9)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
- {
- if (equal(g_szDefaultSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnife3Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- else if (ze_get_user_level(id) >= 10 && ze_get_user_level(id) < 14)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
- {
- if (equal(g_szDefaultSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnife4Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- else if (ze_get_user_level(id) >= 15 && ze_get_user_level(id) < 20)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
- {
- if (equal(g_szDefaultSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnife5Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- else if (ze_get_user_level(id) >= 21 && ze_get_user_level(id) < 30)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
- {
- if (equal(g_szDefaultSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnife6Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- else if (ze_get_user_level(id) >= 31 && ze_get_user_level(id) < 40)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
- {
- if (equal(g_szDefaultSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnife7Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- else if (ze_get_user_level(id) >= 49 && ze_get_user_level(id) < 50)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++)
- {
- if (equal(g_szDefaultSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnife8Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- else if (ze_get_vip_flags(id) & VIP_E)
- {
- for(new iIndex = 0; iIndex <= charsmax(g_szKnifeVSounds); iIndex++)
- {
- if (equal(g_szKnifeVSounds[iIndex], szSound))
- {
- emit_sound(id, iChannel, g_szKnifeVSounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM)
- return FMRES_SUPERCEDE
- }
- }
- }
- return FMRES_IGNORED
- }
Issue can be from models themselves also, so not only the code which can cause it.
He who fails to plan is planning to fail
Can u fix the p knife vip too?Raheem wrote: ↑3 years ago Although the code is simple and seems it may not the cause but I checked is user alive in two functions, try maybe it helps:
#include <zombie_escape> #include <ze_levels> #include <ze_vip> // Models new const g_szKnife1[][] = { "models/cg/v_knife_griff.mdl", "models/cg/p_knife_griff1.mdl" } new const g_szKnife2[][] = { "models/cg/v_flip_t.mdl", "models/cg/p_flip_t.mdl" } new const g_szKnife3[][] = { "models/cg/v_butterfly_knife.mdl", "models/cg/p_butterfly_knife.mdl" } new const g_szKnife4[][] = { "models/cg/v_bayonet.mdl", "models/cg/p_bayonet.mdl" } new const g_szKnife5[][] = { "models/cg/v_knife_karambit.mdl", "models/cg/p_knife_karambit.mdl" } new const g_szKnife6[][] = { "models/cg/v_knife_karambit.mdl", "models/cg/p_knife_karambit.mdl" } new const g_szKnife7[][] = { "models/cg/v_knifew.mdl", "models/cg/p_knifew.mdl" } new const g_szKnife8[][] = { "models/cg/v_knifew.mdl", "models/cg/p_knifew.mdl" } new const g_szKnifeV[][] = { "models/cg/v_knifev.mdl", "models/cg/p_knifev.mdl" } // Sounds new const g_szKnife1Sounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szKnife2Sounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szKnife3Sounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szKnife4Sounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szKnife5Sounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szKnife6Sounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szKnife7Sounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szKnife8Sounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szDefaultSounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } new const g_szKnifeVSounds[][] = { "weapons/knife_deploy1.wav", "weapons/knife_hit1.wav", "weapons/knife_hit2.wav", "weapons/knife_hit3.wav", "weapons/knife_hit4.wav", "weapons/knife_hitwall1.wav", "weapons/knife_slash1.wav", "weapons/knife_slash2.wav", "weapons/knife_stab.wav" } // Models indexes enum { V_Model = 0, P_Model } public plugin_init() { register_plugin("Knife Levels", "1.0", "Raheem") // Fakemeta register_forward(FM_EmitSound, "Fw_EmitSound") } public plugin_precache() { new iIndex; // Prechace models for(iIndex = 0; iIndex <= charsmax(g_szKnife1); iIndex++) precache_model(g_szKnife1[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnife2); iIndex++) precache_model(g_szKnife2[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnife3); iIndex++) precache_model(g_szKnife3[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnife4); iIndex++) precache_model(g_szKnife4[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnife5); iIndex++) precache_model(g_szKnife5[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnife6); iIndex++) precache_model(g_szKnife6[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnife7); iIndex++) precache_model(g_szKnife7[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnife8); iIndex++) precache_model(g_szKnife8[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnifeV); iIndex++) precache_model(g_szKnifeV[iIndex]) // Prechace sounds for(iIndex = 0; iIndex <= charsmax(g_szKnife1Sounds); iIndex++) precache_sound(g_szKnife1Sounds[iIndex]) for(iIndex = 0; iIndex <= charsmax(g_szKnife1Sounds); iIndex++) precache_sound(g_szKnife1Sounds[iIndex]) } public ze_user_humanized(id) { if(!is_user_alive(id)) return if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 4) { // Player level from 1 to 5 set him this knife cs_set_player_view_model(id, CSW_KNIFE, g_szKnife1[V_Model]) cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife1[P_Model]) ResetKnife(id) } else if (ze_get_user_level(id) >= 5 && ze_get_user_level(id) < 9) { // Player level from 5 to 8 set him this knife cs_set_player_view_model(id, CSW_KNIFE, g_szKnife2[V_Model]) cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife2[P_Model]) ResetKnife(id) } else if (ze_get_user_level(id) >= 10 && ze_get_user_level(id) < 14) { // Player level from 5 to 8 set him this knife cs_set_player_view_model(id, CSW_KNIFE, g_szKnife3[V_Model]) cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife3[P_Model]) ResetKnife(id) } else if (ze_get_user_level(id) >= 15 && ze_get_user_level(id) < 19) { // Player level from 5 to 8 set him this knife cs_set_player_view_model(id, CSW_KNIFE, g_szKnife4[V_Model]) cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife4[P_Model]) ResetKnife(id) } else if (ze_get_user_level(id) >= 20 && ze_get_user_level(id) < 24) { // Player level from 26 to 30 set him this knife cs_set_player_view_model(id, CSW_KNIFE, g_szKnife5[V_Model]) cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife5[P_Model]) ResetKnife(id) } else if (ze_get_user_level(id) >= 25 && ze_get_user_level(id) < 29) { // Player level from 26 to 30 set him this knife cs_set_player_view_model(id, CSW_KNIFE, g_szKnife6[V_Model]) cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife6[P_Model]) ResetKnife(id) } else if (ze_get_user_level(id) >= 30 && ze_get_user_level(id) < 50) { // Player level from 26 to 30 set him this knife cs_set_player_view_model(id, CSW_KNIFE, g_szKnife7[V_Model]) cs_set_player_weap_model(id, CSW_KNIFE, g_szKnife7[P_Model]) ResetKnife(id) } else if (ze_get_vip_flags(id) & VIP_A) { // Player level from 26 to 30 set him this knife cs_set_player_view_model(id, CSW_KNIFE, g_szKnifeV[V_Model]) cs_set_player_weap_model(id, CSW_KNIFE, g_szKnifeV[P_Model]) ResetKnife(id) } } public ResetKnife(id) { if(!is_user_alive(id)) return rg_remove_item(id, "weapon_knife") rg_give_item(id, "weapon_knife", GT_APPEND) engclient_cmd(id, "weapon_knife") emit_sound(id, CHAN_BODY, "items/gunpickup2.wav", 1.0, ATTN_NORM, 0, PITCH_NORM) } public Fw_EmitSound(id, iChannel, const szSound[]) { if(!is_user_alive(id) || ze_is_user_zombie(id)) return FMRES_IGNORED if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 0) { for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++) { if (equal(g_szDefaultSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnife1Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } else if (ze_get_user_level(id) >= 0 && ze_get_user_level(id) < 5) { for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++) { if (equal(g_szDefaultSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnife2Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } else if (ze_get_user_level(id) >= 5 && ze_get_user_level(id) < 9) { for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++) { if (equal(g_szDefaultSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnife3Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } else if (ze_get_user_level(id) >= 10 && ze_get_user_level(id) < 14) { for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++) { if (equal(g_szDefaultSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnife4Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } else if (ze_get_user_level(id) >= 15 && ze_get_user_level(id) < 20) { for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++) { if (equal(g_szDefaultSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnife5Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } else if (ze_get_user_level(id) >= 21 && ze_get_user_level(id) < 30) { for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++) { if (equal(g_szDefaultSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnife6Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } else if (ze_get_user_level(id) >= 31 && ze_get_user_level(id) < 40) { for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++) { if (equal(g_szDefaultSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnife7Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } else if (ze_get_user_level(id) >= 49 && ze_get_user_level(id) < 50) { for(new iIndex = 0; iIndex <= charsmax(g_szDefaultSounds); iIndex++) { if (equal(g_szDefaultSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnife8Sounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } else if (ze_get_vip_flags(id) & VIP_E) { for(new iIndex = 0; iIndex <= charsmax(g_szKnifeVSounds); iIndex++) { if (equal(g_szKnifeVSounds[iIndex], szSound)) { emit_sound(id, iChannel, g_szKnifeVSounds[iIndex], 1.0, ATTN_NORM, 0, PITCH_NORM) return FMRES_SUPERCEDE } } } return FMRES_IGNORED }
But it was Working well and all models working well... tested before!Issue can be from models themselves also, so not only the code which can cause it.
DRK Zombie-Escape V1.6
IP : 81.169.153.129:27015
IP : 81.169.153.129:27015
I have this problem every time when maps changes and the problem is from the maps some maps have many models and sounds and you have many models and sounds in your serevr and when you change the map in a big map with many models and sound you rich the limit off souns or models, so the single things you can do it-s to take off some models or sounds, or don-t play anymore that maps.
In that case you can use https://github.com/In-line/metamod_unpr ... /Beta2.5.3 (download unprecacher.tar.gz), after installing it put in list.ini the following:
- models/w_antidote.mdl
- models/w_security.mdl
- models/w_longjump.mdl
- items/suitcharge1.wav
- items/suitchargeno1.wav
- items/suitchargeok1.wav
- common/wpn_hudoff.wav
- common/wpn_hudon.wav
- common/wpn_moveselect.wav
- common/wpn_denyselect.wav
- player/geiger6.wav
- player/geiger5.wav
- player/geiger4.wav
- player/geiger3.wav
- player/geiger2.wav
- player/geiger1.wav
- sprites/zerogxplode.spr
- sprites/WXplo1.spr
- sprites/steam1.spr
- sprites/bubble.spr
- sprites/bloodspray.spr
- sprites/blood.spr
- sprites/smokepuff.spr
- sprites/eexplo.spr
- sprites/fexplo.spr
- sprites/fexplo1.spr
- sprites/b-tele1.spr
- sprites/c-tele1.spr
- sprites/ledglow.spr
- sprites/laserdot.spr
- sprites/explode1.spr
- weapons/bullet_hit1.wav
- weapons/bullet_hit2.wav
- items/weapondrop1.wav
- weapons/generic_reload.wav
- sprites/smoke.spr
- buttons/bell1.wav
- buttons/blip1.wav
- buttons/blip2.wav
- buttons/button11.wav
- buttons/latchunlocked2.wav
- buttons/lightswitch2.wav
- ambience/quail1.wav
- weapons/ak47_clipout.wav
- weapons/ak47_clipin.wav
- weapons/ak47_boltpull.wav
- weapons/aug_clipout.wav
- weapons/aug_clipin.wav
- weapons/aug_boltpull.wav
- weapons/aug_boltslap.wav
- weapons/aug_forearm.wav
- weapons/c4_click.wav
- weapons/c4_beep1.wav
- weapons/c4_beep2.wav
- weapons/c4_beep3.wav
- weapons/c4_beep4.wav
- weapons/c4_beep5.wav
- weapons/c4_explode1.wav
- weapons/c4_plant.wav
- weapons/c4_disarm.wav
- weapons/c4_disarmed.wav
- weapons/elite_reloadstart.wav
- weapons/elite_leftclipin.wav
- weapons/elite_clipout.wav
- weapons/elite_sliderelease.wav
- weapons/elite_rightclipin.wav
- weapons/elite_deploy.wav
- weapons/famas_clipout.wav
- weapons/famas_clipin.wav
- weapons/famas_boltpull.wav
- weapons/famas_boltslap.wav
- weapons/famas_forearm.wav
- weapons/g3sg1_slide.wav
- weapons/g3sg1_clipin.wav
- weapons/g3sg1_clipout.wav
- weapons/galil_clipout.wav
- weapons/galil_clipin.wav
- weapons/galil_boltpull.wav
- weapons/m4a1_clipin.wav
- weapons/m4a1_clipout.wav
- weapons/m4a1_boltpull.wav
- weapons/m4a1_deploy.wav
- weapons/m4a1_silencer_on.wav
- weapons/m4a1_silencer_off.wav
- weapons/m249_boxout.wav
- weapons/m249_boxin.wav
- weapons/m249_chain.wav
- weapons/m249_coverup.wav
- weapons/m249_coverdown.wav
- weapons/mac10_clipout.wav
- weapons/mac10_clipin.wav
- weapons/mac10_boltpull.wav
- weapons/mp5_clipout.wav
- weapons/mp5_clipin.wav
- weapons/mp5_slideback.wav
- weapons/p90_clipout.wav
- weapons/p90_clipin.wav
- weapons/p90_boltpull.wav
- weapons/p90_cliprelease.wav
- weapons/p228_clipout.wav
- weapons/p228_clipin.wav
- weapons/p228_sliderelease.wav
- weapons/p228_slidepull.wav
- weapons/scout_bolt.wav
- weapons/scout_clipin.wav
- weapons/scout_clipout.wav
- weapons/sg550_boltpull.wav
- weapons/sg550_clipin.wav
- weapons/sg550_clipout.wav
- weapons/sg552_clipout.wav
- weapons/sg552_clipin.wav
- weapons/sg552_boltpull.wav
- weapons/ump45_clipout.wav
- weapons/ump45_clipin.wav
- weapons/ump45_boltslap.wav
- weapons/usp_clipout.wav
- weapons/usp_clipin.wav
- weapons/usp_silencer_on.wav
- weapons/usp_silencer_off.wav
- weapons/usp_sliderelease.wav
- weapons/usp_slideback.wav
He who fails to plan is planning to fail
I have to put al that things from that folder uprechacer on my sv ?Raheem wrote: ↑3 years ago In that case you can use https://github.com/In-line/metamod_unpr ... /Beta2.5.3 (download unprecacher.tar.gz), after installing it put in list.ini the following:And stop/start your server. Now we reduced 121 item from precache (useless items) which will give you more ability to precache more without reaching the 512 limit.
models/w_antidote.mdl models/w_security.mdl models/w_longjump.mdl items/suitcharge1.wav items/suitchargeno1.wav items/suitchargeok1.wav common/wpn_hudoff.wav common/wpn_hudon.wav common/wpn_moveselect.wav common/wpn_denyselect.wav player/geiger6.wav player/geiger5.wav player/geiger4.wav player/geiger3.wav player/geiger2.wav player/geiger1.wav sprites/zerogxplode.spr sprites/WXplo1.spr sprites/steam1.spr sprites/bubble.spr sprites/bloodspray.spr sprites/blood.spr sprites/smokepuff.spr sprites/eexplo.spr sprites/fexplo.spr sprites/fexplo1.spr sprites/b-tele1.spr sprites/c-tele1.spr sprites/ledglow.spr sprites/laserdot.spr sprites/explode1.spr weapons/bullet_hit1.wav weapons/bullet_hit2.wav items/weapondrop1.wav weapons/generic_reload.wav sprites/smoke.spr buttons/bell1.wav buttons/blip1.wav buttons/blip2.wav buttons/button11.wav buttons/latchunlocked2.wav buttons/lightswitch2.wav ambience/quail1.wav weapons/ak47_clipout.wav weapons/ak47_clipin.wav weapons/ak47_boltpull.wav weapons/aug_clipout.wav weapons/aug_clipin.wav weapons/aug_boltpull.wav weapons/aug_boltslap.wav weapons/aug_forearm.wav weapons/c4_click.wav weapons/c4_beep1.wav weapons/c4_beep2.wav weapons/c4_beep3.wav weapons/c4_beep4.wav weapons/c4_beep5.wav weapons/c4_explode1.wav weapons/c4_plant.wav weapons/c4_disarm.wav weapons/c4_disarmed.wav weapons/elite_reloadstart.wav weapons/elite_leftclipin.wav weapons/elite_clipout.wav weapons/elite_sliderelease.wav weapons/elite_rightclipin.wav weapons/elite_deploy.wav weapons/famas_clipout.wav weapons/famas_clipin.wav weapons/famas_boltpull.wav weapons/famas_boltslap.wav weapons/famas_forearm.wav weapons/g3sg1_slide.wav weapons/g3sg1_clipin.wav weapons/g3sg1_clipout.wav weapons/galil_clipout.wav weapons/galil_clipin.wav weapons/galil_boltpull.wav weapons/m4a1_clipin.wav weapons/m4a1_clipout.wav weapons/m4a1_boltpull.wav weapons/m4a1_deploy.wav weapons/m4a1_silencer_on.wav weapons/m4a1_silencer_off.wav weapons/m249_boxout.wav weapons/m249_boxin.wav weapons/m249_chain.wav weapons/m249_coverup.wav weapons/m249_coverdown.wav weapons/mac10_clipout.wav weapons/mac10_clipin.wav weapons/mac10_boltpull.wav weapons/mp5_clipout.wav weapons/mp5_clipin.wav weapons/mp5_slideback.wav weapons/p90_clipout.wav weapons/p90_clipin.wav weapons/p90_boltpull.wav weapons/p90_cliprelease.wav weapons/p228_clipout.wav weapons/p228_clipin.wav weapons/p228_sliderelease.wav weapons/p228_slidepull.wav weapons/scout_bolt.wav weapons/scout_clipin.wav weapons/scout_clipout.wav weapons/sg550_boltpull.wav weapons/sg550_clipin.wav weapons/sg550_clipout.wav weapons/sg552_clipout.wav weapons/sg552_clipin.wav weapons/sg552_boltpull.wav weapons/ump45_clipout.wav weapons/ump45_clipin.wav weapons/ump45_boltslap.wav weapons/usp_clipout.wav weapons/usp_clipin.wav weapons/usp_silencer_on.wav weapons/usp_silencer_off.wav weapons/usp_sliderelease.wav weapons/usp_slideback.wav
1. Download: https://github.com/In-line/metamod_unpr ... her.tar.gz
2. Unzip it and you will get a folder named: unprecacher, upload it in addons folder
3. Go to metamod folder and open plugins.ini, and add the following line: linux addons/unprecacher/unprecacher_i386.so
4. Back to unprecacher folder on your host and you will find a file named list.ini, add the following in that file:
Nothing more, these files already exist in any HLDS. We just unprecache it to allow more files of our custom sounds, models, sprites... etc to be loaded. You can even unprecache more models like all weapons models.
2. Unzip it and you will get a folder named: unprecacher, upload it in addons folder
3. Go to metamod folder and open plugins.ini, and add the following line: linux addons/unprecacher/unprecacher_i386.so
4. Back to unprecacher folder on your host and you will find a file named list.ini, add the following in that file:
- models/w_antidote.mdl
- models/w_security.mdl
- models/w_longjump.mdl
- items/suitcharge1.wav
- items/suitchargeno1.wav
- items/suitchargeok1.wav
- common/wpn_hudoff.wav
- common/wpn_hudon.wav
- common/wpn_moveselect.wav
- common/wpn_denyselect.wav
- player/geiger6.wav
- player/geiger5.wav
- player/geiger4.wav
- player/geiger3.wav
- player/geiger2.wav
- player/geiger1.wav
- sprites/zerogxplode.spr
- sprites/WXplo1.spr
- sprites/steam1.spr
- sprites/bubble.spr
- sprites/bloodspray.spr
- sprites/blood.spr
- sprites/smokepuff.spr
- sprites/eexplo.spr
- sprites/fexplo.spr
- sprites/fexplo1.spr
- sprites/b-tele1.spr
- sprites/c-tele1.spr
- sprites/ledglow.spr
- sprites/laserdot.spr
- sprites/explode1.spr
- weapons/bullet_hit1.wav
- weapons/bullet_hit2.wav
- items/weapondrop1.wav
- weapons/generic_reload.wav
- sprites/smoke.spr
- buttons/bell1.wav
- buttons/blip1.wav
- buttons/blip2.wav
- buttons/button11.wav
- buttons/latchunlocked2.wav
- buttons/lightswitch2.wav
- ambience/quail1.wav
- weapons/ak47_clipout.wav
- weapons/ak47_clipin.wav
- weapons/ak47_boltpull.wav
- weapons/aug_clipout.wav
- weapons/aug_clipin.wav
- weapons/aug_boltpull.wav
- weapons/aug_boltslap.wav
- weapons/aug_forearm.wav
- weapons/c4_click.wav
- weapons/c4_beep1.wav
- weapons/c4_beep2.wav
- weapons/c4_beep3.wav
- weapons/c4_beep4.wav
- weapons/c4_beep5.wav
- weapons/c4_explode1.wav
- weapons/c4_plant.wav
- weapons/c4_disarm.wav
- weapons/c4_disarmed.wav
- weapons/elite_reloadstart.wav
- weapons/elite_leftclipin.wav
- weapons/elite_clipout.wav
- weapons/elite_sliderelease.wav
- weapons/elite_rightclipin.wav
- weapons/elite_deploy.wav
- weapons/famas_clipout.wav
- weapons/famas_clipin.wav
- weapons/famas_boltpull.wav
- weapons/famas_boltslap.wav
- weapons/famas_forearm.wav
- weapons/g3sg1_slide.wav
- weapons/g3sg1_clipin.wav
- weapons/g3sg1_clipout.wav
- weapons/galil_clipout.wav
- weapons/galil_clipin.wav
- weapons/galil_boltpull.wav
- weapons/m4a1_clipin.wav
- weapons/m4a1_clipout.wav
- weapons/m4a1_boltpull.wav
- weapons/m4a1_deploy.wav
- weapons/m4a1_silencer_on.wav
- weapons/m4a1_silencer_off.wav
- weapons/m249_boxout.wav
- weapons/m249_boxin.wav
- weapons/m249_chain.wav
- weapons/m249_coverup.wav
- weapons/m249_coverdown.wav
- weapons/mac10_clipout.wav
- weapons/mac10_clipin.wav
- weapons/mac10_boltpull.wav
- weapons/mp5_clipout.wav
- weapons/mp5_clipin.wav
- weapons/mp5_slideback.wav
- weapons/p90_clipout.wav
- weapons/p90_clipin.wav
- weapons/p90_boltpull.wav
- weapons/p90_cliprelease.wav
- weapons/p228_clipout.wav
- weapons/p228_clipin.wav
- weapons/p228_sliderelease.wav
- weapons/p228_slidepull.wav
- weapons/scout_bolt.wav
- weapons/scout_clipin.wav
- weapons/scout_clipout.wav
- weapons/sg550_boltpull.wav
- weapons/sg550_clipin.wav
- weapons/sg550_clipout.wav
- weapons/sg552_clipout.wav
- weapons/sg552_clipin.wav
- weapons/sg552_boltpull.wav
- weapons/ump45_clipout.wav
- weapons/ump45_clipin.wav
- weapons/ump45_boltslap.wav
- weapons/usp_clipout.wav
- weapons/usp_clipin.wav
- weapons/usp_silencer_on.wav
- weapons/usp_silencer_off.wav
- weapons/usp_sliderelease.wav
- weapons/usp_slideback.wav
Nothing more, these files already exist in any HLDS. We just unprecache it to allow more files of our custom sounds, models, sprites... etc to be loaded. You can even unprecache more models like all weapons models.
He who fails to plan is planning to fail
OK, Thank you very much
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 0 guests