Post by LegendofWarior on Sept 22, 2015 20:15:36 GMT
Hello, this tutorials will teach you how to make your own extra item, with his own cvars/models/bullet color/etc...
Just follow those steps.
Exemple : We Will Use Golden ak47, We Want Make Frost AWP.
First Register the Plugin
Find
// Register The Plugin
register_plugin("[ZP] Extra: Golden Ak 47", "1.1", "AlejandroSk")
// Register Zombie Plague extra item
g_itemid = zp_register_extra_item("Golden Ak 47", 30, ZP_TEAM_HUMAN)
Change to
// Register The Plugin
register_plugin("[ZP] Extra: Frost AWP", "1.1", "Your Name :D")
// Register Zombie Plague extra item
g_itemid = zp_register_extra_item("Frost AWP", 30, ZP_TEAM_HUMAN)
Find
new cvar_dmgmultiplier, cvar_goldbullets, cvar_custommodel, cvar_uclip
and Change it to
new cvar_dmgmultiplier, cvar_frostbullets, cvar_custommodel, cvar_uclip
Then Find all
cvar_goldbullets
Change to
cvar_frostbullets
now find (after you change goldbullets to frostbullets
cvar_dmgmultiplier = register_cvar("zp_goldenak_dmg_multiplier", "5")
cvar_custommodel = register_cvar("zp_goldenak_custom_model", "1")
cvar_frostbullets = register_cvar("zp_goldenak_gold_bullets", "1")
cvar_uclip = register_cvar("zp_goldenak_unlimited_clip", "0")
Change it To
cvar_dmgmultiplier = register_cvar("zp_frostawp_dmg_multiplier", "15")
cvar_custommodel = register_cvar("zp_frostawp_custom_model", "1")
cvar_frostbullets = register_cvar("zp_frostawp_gold_bullets", "1")
cvar_uclip = register_cvar("zp_frostawp_unlimited_clip", "0")
then find all of those : Wep_ak47 and CSW_AK47 and weapon_ak47 and change them to Wep_awp and CSW_AWP and weapon_awp
If You Want make Blue Bullet, Find
//BEAMENTPOINTS
message_begin( MSG_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_short( m_spriteTexture )
write_byte(0) // framestart
write_byte(10) // framerate
write_byte(1) // life
write_byte(5) // width
write_byte(0) // noise
write_byte( 255 ) // r, g, b
write_byte( 255 ) // r, g, b
write_byte( 0 ) // r, g, b
write_byte(200) // brightness
write_byte(150) // speed
message_end()
}
and change it to any color you want, here is blue bullet color
//BEAMENTPOINTS
message_begin( MSG_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_short( m_spriteTexture )
write_byte(0) // framestart
write_byte(10) // framerate
write_byte(1) // life
write_byte(5) // width
write_byte(0) // noise
write_byte( 0 ) // r, g, b
write_byte( 0 ) // r, g, b
write_byte( 255 ) // r, g, b
write_byte(200) // brightness
write_byte(150) // speed
message_end()
}
and Done You can Change Some Things like
client_print(player, print_chat, "[ZP] You bought Golden Ak - 47")
To
client_print(player, print_chat, "[ZP] You bought Frost AWP")
or Add Freeze Code to this Gun or you can make More Like Fire AWP/Frost m4a1/Fire m4a1/Fire AK47/etc...
i dont know Freeze Code so dont ask me about those, im little AMXX Scripter and mediuem ZP Scripter.
and dont forgot that, dont remove any thing from inculde
#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <hamsandwich>
#include <cstrike>
#include <zombieplague>
Have a Fun