register_plugin("Balrog-I", "1.0", "yas17sin")
me gived it him him and him change author pfff scammers.... he cant even creat code from 10 lines and he created this unlock and in real its unlock of dias penedragon
new cvar_dmg_b1, cvar_recoil_b1, cvar_clip_b1, cvar_spd_b1, cvar_b1_ammo, cvar_dmg_exp new g_MaxPlayers, g_orig_event_b1, g_IsInPrimaryAttack, g_iClip new Float:cl_pushangle[MAX_PLAYERS + 1][3], m_iBlood[2] new g_has_b1[33], g_clip_ammo[33], oldweap[33],g_b1_TmpClip[33] new gmsgWeaponList, gMode[33], sExplo
register_plugin("Balrog-I", "1.0", "yas17sin")
me gived it him him and him change author pfff scammers.... he cant even creat code from 10 lines and he created this unlock and in real its unlock of dias penedragon
first, you didn't give me this, i took it from zombie-mod.ru and it was a extra item for zombie i change it to normal and then to gunxpmod unlock.
second, yeah this was dias plugin i only change it, but the real author is dias,i did my name because i wasn't share any plugin i was only keeping them in my game to play with them.
third, @Restart here is this insturction follow it :
Spoiler
to make unlock first take a any gun code this as example :
new const GRENADE_MODEL[] = "models/grenade.mdl" new in_zoom[33] new g_reload[33] // Sprites new const GRENADE_TRAIL[] = "sprites/laserbeam.spr" new const GRENADE_EXPLOSION[] = "sprites/zerogxplode.spr" new sTrail, sExplo const PRIMARY_WEAPONS_BIT_SUM = (1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_P90)|(1<<CSW_P90)|(1<<CSW_P90)|(1<<CSW_SG550)|(1<<CSW_P90)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_P90)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_M3)|(1<<CSW_P90)|(1<<CSW_AK47)|(1<<CSW_P90)
new const Fire_Sounds[][] = { "weapons/m32-1.wav" }
new gmsgWeaponList new m32_V_MODEL[64] = "models/v_m32.mdl" new m32_P_MODEL[64] = "models/p_m32.mdl" new m32_W_MODEL[64] = "models/w_m32.mdl"
new cvar_clip_m32, cvar_m32_ammo,cvar_dmg new g_has_m32[33] new g_MaxPlayers, g_orig_event_m32 public plugin_init() { register_plugin("M32", "2.6", "Example")
public Hook_Select(id) { engclient_cmd(id, "weapon_m3") return PLUGIN_HANDLED }
public fwPrecacheEvent_Post(type, const name[]) { if (equal("events/m3.sc", name)) { g_orig_event_m32 = get_orig_retval() return FMRES_HANDLED }
return FMRES_IGNORED }
/*public clcmd_buyammo(id) { // Not alive or infinite ammo setting enabled if (!is_user_alive(id) || !user_has_weapon(id,CSW_M3) || !g_has_m32[id]) return PLUGIN_CONTINUE
if (zp_get_user_ammo_packs(id) < 1) { client_print(id,print_chat,"You need 1 ammo") return PLUGIN_CONTINUE }
// Get user weapons static currentammo, refilled refilled = false if(cs_get_user_bpammo(id,CSW_M3)>=18) return PLUGIN_HANDLED
// Give additional ammo ExecuteHamB(Ham_GiveAmmo, id, 6, "buckshot", 18) // Check whether we actually refilled the weapon's ammo if (cs_get_user_bpammo(id, CSW_M3) - currentammo > 0) refilled = true
// Weapons already have full ammo if (!refilled) return PLUGIN_CONTINUE
// Deduce ammo packs, play clip purchase sound, and notify player zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id)-1) emit_sound(id, CHAN_ITEM, "items/9mmclip1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
return PLUGIN_CONTINUE }*/
public modelka(entity, model[]) { if(!is_valid_ent(entity)) return FMRES_IGNORED;
public FireGrenade(id) { new ammo, clip get_user_weapon(id, clip, ammo) static wep wep = find_ent_by_owner(-1, "weapon_m3", id) cs_set_weapon_ammo(wep,clip-1) new Float:origin[3],Float:velocity[3],Float:angles[3] engfunc(EngFunc_GetAttachment, id, 0, origin,angles) pev(id,pev_angles,angles) new ent = create_entity( "info_target" ) set_pev( ent, pev_classname, "m32_grenade" ) set_pev( ent, pev_solid, SOLID_BBOX ) set_pev( ent, pev_movetype, MOVETYPE_TOSS ) set_pev( ent, pev_mins, { -0.1, -0.1, -0.1 } ) set_pev( ent, pev_maxs, { 0.1, 0.1, 0.1 } ) entity_set_model( ent, GRENADE_MODEL ) set_pev( ent, pev_origin, origin ) set_pev( ent, pev_angles, angles ) set_pev( ent, pev_owner, id ) velocity_by_aim( id, in_zoom[id]? 1400 : 1000 , velocity ) set_pev( ent, pev_velocity, velocity ) message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_BEAMFOLLOW) // Temporary entity ID write_short(ent) // Entity write_short(sTrail) // Sprite index write_byte(10) // Life write_byte(3) // Line width write_byte(255) // Red write_byte(255) // Green write_byte(255) // Blue write_byte(50) // Alpha message_end() return PLUGIN_CONTINUE }
// We hit something!!! public pfn_touch(ptr, ptd) { // If ent is valid if (pev_valid(ptr)) { // Get classnames static classname[32] pev(ptr, pev_classname, classname, 31)
new const GRENADE_MODEL[] = "models/grenade.mdl" new in_zoom[33] new g_reload[33] // Sprites new const GRENADE_TRAIL[] = "sprites/laserbeam.spr" new const GRENADE_EXPLOSION[] = "sprites/zerogxplode.spr" new sTrail, sExplo const PRIMARY_WEAPONS_BIT_SUM = (1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_P90)|(1<<CSW_P90)|(1<<CSW_P90)|(1<<CSW_SG550)|(1<<CSW_P90)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_P90)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_M3)|(1<<CSW_P90)|(1<<CSW_AK47)|(1<<CSW_P90)
new const Fire_Sounds[][] = { "weapons/m32-1.wav" }
new gmsgWeaponList new m32_V_MODEL[64] = "models/v_m32.mdl" new m32_P_MODEL[64] = "models/p_m32.mdl" new m32_W_MODEL[64] = "models/w_m32.mdl"
new cvar_clip_m32, cvar_m32_ammo,cvar_dmg new g_has_m32[33] new g_MaxPlayers, g_orig_event_m32 public plugin_init() { register_plugin("M32", "2.6", "Finished Example") register_gxm_item("M32 : Milkor", " +Very-Powerfull +Scope ( M3 ) ", 2500)
public Hook_Select(id) { engclient_cmd(id, "weapon_m3") return PLUGIN_HANDLED }
public fwPrecacheEvent_Post(type, const name[]) { if (equal("events/m3.sc", name)) { g_orig_event_m32 = get_orig_retval() return FMRES_HANDLED }
return FMRES_IGNORED }
/*public clcmd_buyammo(id) { // Not alive or infinite ammo setting enabled if (!is_user_alive(id) || !user_has_weapon(id,CSW_M3) || !g_has_m32[id]) return PLUGIN_CONTINUE
if (zp_get_user_ammo_packs(id) < 1) { client_print(id,print_chat,"You need 1 ammo") return PLUGIN_CONTINUE }
// Get user weapons static currentammo, refilled refilled = false if(cs_get_user_bpammo(id,CSW_M3)>=18) return PLUGIN_HANDLED
// Give additional ammo ExecuteHamB(Ham_GiveAmmo, id, 6, "buckshot", 18) // Check whether we actually refilled the weapon's ammo if (cs_get_user_bpammo(id, CSW_M3) - currentammo > 0) refilled = true
// Weapons already have full ammo if (!refilled) return PLUGIN_CONTINUE
// Deduce ammo packs, play clip purchase sound, and notify player zp_set_user_ammo_packs(id,zp_get_user_ammo_packs(id)-1) emit_sound(id, CHAN_ITEM, "items/9mmclip1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
return PLUGIN_CONTINUE }*/
public modelka(entity, model[]) { if(!is_valid_ent(entity)) return FMRES_IGNORED;
public FireGrenade(id) { new ammo, clip get_user_weapon(id, clip, ammo) static wep wep = find_ent_by_owner(-1, "weapon_m3", id) cs_set_weapon_ammo(wep,clip-1) new Float:origin[3],Float:velocity[3],Float:angles[3] engfunc(EngFunc_GetAttachment, id, 0, origin,angles) pev(id,pev_angles,angles) new ent = create_entity( "info_target" ) set_pev( ent, pev_classname, "m32_grenade" ) set_pev( ent, pev_solid, SOLID_BBOX ) set_pev( ent, pev_movetype, MOVETYPE_TOSS ) set_pev( ent, pev_mins, { -0.1, -0.1, -0.1 } ) set_pev( ent, pev_maxs, { 0.1, 0.1, 0.1 } ) entity_set_model( ent, GRENADE_MODEL ) set_pev( ent, pev_origin, origin ) set_pev( ent, pev_angles, angles ) set_pev( ent, pev_owner, id ) velocity_by_aim( id, in_zoom[id]? 1400 : 1000 , velocity ) set_pev( ent, pev_velocity, velocity ) message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_BEAMFOLLOW) // Temporary entity ID write_short(ent) // Entity write_short(sTrail) // Sprite index write_byte(10) // Life write_byte(3) // Line width write_byte(255) // Red write_byte(255) // Green write_byte(255) // Blue write_byte(50) // Alpha message_end() return PLUGIN_CONTINUE }
// We hit something!!! public pfn_touch(ptr, ptd) { // If ent is valid if (pev_valid(ptr)) { // Get classnames static classname[32] pev(ptr, pev_classname, classname, 31)
//all
new g_numberofitems[iUnlocks];
new g_itemindex[iUnlocks][MAX_UNLOCKS+1];
new g_itemcost[iUnlocks][MAX_UNLOCKS+1];
new g_itemlevel[iUnlocks][MAX_UNLOCKS+1];
new g_itemaccess[iUnlocks][MAX_UNLOCKS+1];
new g_itemname[iUnlocks][MAX_UNLOCKS+1][MAX_UNLOCKS_NAME_SIZE+1];
new g_itemdesc[iUnlocks][MAX_UNLOCKS+1][MAX_UNLOCKS_DESC_SIZE+1];
new g_itemwpn[iUnlocks][MAX_UNLOCKS+1];
new bool:g_PlayerItem[33][iUnlocks][MAX_UNLOCKS+1];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
public client_connect(id)
{
static i, j
for(i = 0; i < iUnlocks; ++i)
for(j = 0; j <= MAX_UNLOCKS; ++j)
g_PlayerItem[id][i][j] = false;
}
public menus(id)
{
new menu = menu_create("Tienda de Mejoras", "upgrades_menu");
new call = menu_makecallback("Call_Back");
gSelected[id] = 0;
new szMsg[256];
//all
new g_numberofitems[iUnlocks];
new g_itemindex[iUnlocks][MAX_UNLOCKS+1];
new g_itemcost[iUnlocks][MAX_UNLOCKS+1];
new g_itemlevel[iUnlocks][MAX_UNLOCKS+1];
new g_itemaccess[iUnlocks][MAX_UNLOCKS+1];
new g_itemname[iUnlocks][MAX_UNLOCKS+1][MAX_UNLOCKS_NAME_SIZE+1];
new g_itemdesc[iUnlocks][MAX_UNLOCKS+1][MAX_UNLOCKS_DESC_SIZE+1];
new g_itemwpn[iUnlocks][MAX_UNLOCKS+1];
new bool:g_PlayerItem[33][iUnlocks][MAX_UNLOCKS+1];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
public client_connect(id)
{
static i, j
for(i = 0; i < iUnlocks; ++i)
for(j = 0; j <= MAX_UNLOCKS; ++j)
g_PlayerItem[id][i][j] = false;
}
public menus(id)
{
new menu = menu_create("Tienda de Mejoras", "upgrades_menu");
new call = menu_makecallback("Call_Back");
gSelected[id] = 0;
new szMsg[256];
Stop posting the same BS over and over again. If you have a specific question - ask it properly in your own thread. Don't be annoying. You won't get an answer for an unclear question like yours.