Raised This Month: $51 Target: $400
 12% 

Subplugin Submission [ZP] Extra Item ( Buy 1000HP ) Updated


Post New Thread Reply   
 
Thread Tools Display Modes
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 01-14-2009 , 12:01   Re: [ZP] Extra Item ( Buy 1000HP )
Reply With Quote #11

1.45 mb for this plugins? omg
AfteR. is offline
Speed!
BANNED
Join Date: Jan 2009
Old 01-14-2009 , 13:16   Re: [ZP] Extra Item ( Buy 1000HP )
Reply With Quote #12

Quote:
Originally Posted by The-Disaster View Post
I've learned to do some scripting and this is the result

I've made a plugin for zombies and humans to buy 1000HP

Very simple plugin

CVARS :
ـــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــــــــــــــــ
zp_buyhp "1|0" | To enable and disable the plugin | (default = 1)

zp_buyhp_price "5" | The Price of the 1000HP pack | (default = 5)
ـــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــــــــــــــــ

so what do you think

P.S =====> never tested it
this is wrong. ZP sistem already remove you the necesary ammo packs, and wont able you to buy it if you dont have enoght

EG: I have 9 ammo, this cost 5, so i buy this, it spends 5 ammos in the ZP sistem, then it calls the plugins and now i have 4 ammos, and it will say that i dont actually have enough ammo packs. Otherwise, if i had 10, it would spend 10 ammo
Speed! is offline
Tx707
New Member
Join Date: Feb 2010
Old 03-16-2010 , 14:37   Re: [ZP] Extra Item ( Buy 1000HP ) Updated
Reply With Quote #13

Quote:
Originally Posted by The-Disaster View Post
I've learned to do some scripting and this is the result

I've made a plugin for zombies and humans to buy 1000HP

Very simple plugin

The price is "5" Ammopacks

CVARS :
ـــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــــــــــــــــ

zp_buyhp_amount "1000" | The Amount you want in the pack | (default = 1000)
ـــــــــــــــــــــــــــــــــــــــــــــ ـــــــــــــــــــــــــ

so what do you think

pointless that would be abusing
make it
- when you buy 1000 hp you half to give 5 ammo packs
-make the cmd shorter
xD
just a sugg.
xD
Tx707 is offline
killer2100
Member
Join Date: Apr 2010
Location: Ireland (Not Irish)
Old 04-09-2010 , 17:46   Re: [ZP] Extra Item ( Buy 1000HP ) Updated
Reply With Quote #14

Can you do that Humans get 100hp and Zombies get 1000hp
__________________
Im New To Cs Zombie Mode, Making My Own Server, Always Accept Help
killer2100 is offline
Send a message via Skype™ to killer2100
fiendshard
Senior Member
Join Date: Dec 2009
Location: In Water
Old 04-09-2010 , 17:53   Re: [ZP] Extra Item ( Buy 1000HP ) Updated
Reply With Quote #15

Try this, human's extra item 100 hp, for a discount price of 5 ammo packs:

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

new const item_name[] = "Buy 100 HP"
new g_itemid_buyhp
new hpamount

public plugin_init() 
{
	register_plugin("[ZP] Buy Health Points", "1.0", "T[h]E Dis[as]teR")
	hpamount = register_cvar("zp_buyhp_amount", "100")
	g_itemid_buyhp = zp_register_extra_item(item_name, 5, ZP_TEAM_HUMAN)
}
public zp_extra_item_selected(id,itemid)
{
	if(!is_user_alive(id))
	
	return PLUGIN_HANDLED;
	
	if(itemid==g_itemid_buyhp)
	{
		if(zp_get_user_ammo_packs(id) < 5)
		{
			client_print(id, print_chat,"[ZP] Not enough Ammo packs.");
			return PLUGIN_HANDLED;
		}
		else
		{
			set_user_health(id,get_user_health(id)+get_pcvar_num(hpamount));
			zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 5);
			client_print(id, print_chat,"[ZP] You Got 100 HP");
		}
	}
	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/
fiendshard is offline
grzelak
Senior Member
Join Date: Sep 2008
Old 04-10-2010 , 03:25   Re: [ZP] Extra Item ( Buy 1000HP ) Updated
Reply With Quote #16

Can u made a plugin (1000hp) only for zombies?
grzelak is offline
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 04-10-2010 , 03:26   Re: [ZP] Extra Item ( Buy 1000HP ) Updated
Reply With Quote #17

Quote:
Originally Posted by grzelak View Post
Can u made a plugin (1000hp) only for zombies?
Code:
#include <amxmodx>
#include <fun>
#include <zombieplague>

new const item_name[] = "Buy 1000 HP"
new g_itemid_buyhp
new hpamount

public plugin_init() 
{
	register_plugin("[ZP] Buy Health Points", "1.0", "T[h]E Dis[as]teR")
	hpamount = register_cvar("zp_buyhp_amount", "1000")
	g_itemid_buyhp = zp_register_extra_item(item_name, 5, ZP_TEAM_ZOMBIE)
}
public zp_extra_item_selected(id,itemid)
{
	if(!is_user_alive(id))
	
	return PLUGIN_HANDLED;
	
	if(itemid==g_itemid_buyhp)
	{
		if(zp_get_user_ammo_packs(id) < 5)
		{
			client_print(id, print_chat,"[ZP] Not enough Ammo packs.");
			return PLUGIN_HANDLED;
		}
		else
		{
			set_user_health(id,get_user_health(id)+get_pcvar_num(hpamount));
			zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 5);
			client_print(id, print_chat,"[ZP] You Got 100 HP");
		}
	}
	return PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-10-2010 , 03:35   Re: [ZP] Extra Item ( Buy 1000HP ) Updated
Reply With Quote #18

Let me correct:



PHP Code:
#include <amxmodx>
#include <fun>
#include <zombieplague>

new const item_name[] = "Buy 1000 HP"
new g_itemid_buyhp
new hpamount

public plugin_init() 
{
    
register_plugin("[ZP] Buy Health Points""1.0""T[h]E Dis[as]teR")
    
hpamount register_cvar("zp_buyhp_amount""1000")
    
g_itemid_buyhp zp_register_extra_item(item_name15ZP_TEAM_ZOMBIE)
}
public 
zp_extra_item_selected(id,itemid)
{
    if(!
is_user_alive(id))
    
    return 
PLUGIN_HANDLED;
    
    if(
itemid==g_itemid_buyhp)
    {
        if(
zp_get_user_ammo_packs(id) < 15)
        {
            
client_print(idprint_chat,"[ZP] Not enough Ammo packs.");
            return 
PLUGIN_HANDLED;
        }
        else
        {
            
set_user_health(id,get_user_health(id)+get_pcvar_num(hpamount));
            
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) - 15);
            
client_print(idprint_chat,"[ZP] You Got 1000 HP");
        }
    }
    return 
PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/ 


Requires 15 Ammo Packs to buy (As it is 1000 HP, not 100 HP)
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.

Last edited by kanatzu; 04-10-2010 at 11:20.
kanatzu is offline
Send a message via MSN to kanatzu
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 04-10-2010 , 03:39   Re: [ZP] Extra Item ( Buy 1000HP ) Updated
Reply With Quote #19

Quote:
Originally Posted by kanatzu View Post
Let me correct:



PHP Code:
#include <amxmodx>
#include <fun>
#include <zombieplague>

new const item_name[] = "Buy 1000 HP"
new g_itemid_buyhp
new hpamount

public plugin_init() 
{
    
register_plugin("[ZP] Buy Health Points""1.0""T[h]E Dis[as]teR")
    
hpamount register_cvar("zp_buyhp_amount""1000")
    
g_itemid_buyhp zp_register_extra_item(item_name15ZP_TEAM_ZOMBIE)
}
public 
zp_extra_item_selected(id,itemid)
{
    if(!
is_user_alive(id))
    
    return 
PLUGIN_HANDLED;
    
    if(
itemid==g_itemid_buyhp)
    {
        if(
zp_get_user_ammo_packs(id) < 15)
        {
            
client_print(idprint_chat,"[ZP] Not enough Ammo packs.");
            return 
PLUGIN_HANDLED;
        }
        else
        {
            
set_user_health(id,get_user_health(id)+get_pcvar_num(hpamount));
            
zp_set_user_ammo_packs(idzp_get_user_ammo_packs(id) - 5);
            
client_print(idprint_chat,"[ZP] You Got 1000 HP");
        }
    }
    return 
PLUGIN_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/ 


Requires 15 Ammo Packs to buy (As it is 1000 HP, not 100 HP)
who said that he want it for 15 packs?
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
kanatzu
Veteran Member
Join Date: Oct 2007
Location: Sweden
Old 04-10-2010 , 03:41   Re: [ZP] Extra Item ( Buy 1000HP ) Updated
Reply With Quote #20

Quote:
Originally Posted by Russiaboy View Post
who said that he want it for 15 packs?
I change it to whatever pack(s) he want.


Allways looking for trubble i see?
__________________




Quote:
Originally Posted by wrecked_ View Post
Stop saying words before I sodomize you with a cucumber.
kanatzu is offline
Send a message via MSN to kanatzu
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 07:42.


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