Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Class: Sniper Zombie [UpDATE!]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vechta
Veteran Member
Join Date: Jun 2010
Old 06-26-2010 , 06:48   Re: [ZP] Class: Sniper Zombie
Reply With Quote #1

Edit bullet amount by cvar:

Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <cstrike>
#include <fun>

new cvar_ammo

new const zclass_name[] = { "Sniper Zombie" }
new const zclass_info[] = { "AWP+++" }
new const zclass_model[] = { "zombie_sorce" }
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass_health = 350
const zclass_speed = 230
const Float:zclass_gravity = 0.94
const Float:zclass_knockback = 1.0

new g_zclassid1

public plugin_init()
{
	register_plugin("[ZP] Class: Sniper Zombie", "0.1", "Zombie-rus")

	cvar_ammo = register_cvar("zp_awp_bullets", "3")
}

public plugin_precache()
{
	g_zclassid1 = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}

public zp_user_infected_post(id, infector)
{
	if (zp_get_user_zombie_class(id) == g_zclassid1)
	{
		strip_user_weapons(id)
		give_item(id, "weapon_awp")
		cs_set_user_bpammo(id, CSW_AWP, get_pcvar_num(cvar_ammo))
	}
}
Vechta is offline
Reply



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 15:34.


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