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

Searching for 2 Plugin, one is Plugin point, second is fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 10-26-2015 , 08:27   Searching for 2 Plugin, one is Plugin point, second is fix
Reply With Quote #1

Hello i searching for that plugin point, The Plugin point is like ammo, just when you kill someone you got one point, than make Section in game menu, and give name (buy Future With Point)
and when you Press on it you can Buy These
1- Double Damage. = 150 Point
2-300 ammo = 200 point
3-150 ammo = 50 point
4- buy Armageddon mode

And you can see The Point on AIM info and spectating, is like Ammo. I Think The must know it

Question about Game Menu keys

if you Press M (game menu) you show This Menu
1- Weapon menu
2- Extra Item
3- Zombie Class
4- unstuck
5- join spectator
9- Admin menu

Well, There are no 8 keys, true?
just there are 1,2,3,4,5 and 9
now what is the problem?
if i presss 8 or 7 or 6 (and there are no 6,7, The Menu Will disappear, you understand me ?>
i mean The menu will Disappear and you should Press M again to see it
So, should keep it if you Press any Key if it there aren't
I hope to understand me

I using zm 4.3 fix5a

i need plugin section 2 , too
bakir123 is offline
Send a message via Skype™ to bakir123
Laoming
Junior Member
Join Date: May 2015
Location: Czech Republic
Old 10-26-2015 , 19:27   Re: Searching for 2 Plugin, one is Plugin point, second is fix
Reply With Quote #2

Sorry for mistake doubble post.

Last edited by Laoming; 10-26-2015 at 19:32. Reason: mistake doubble post
Laoming is offline
Laoming
Junior Member
Join Date: May 2015
Location: Czech Republic
Old 10-26-2015 , 19:29   Re: Searching for 2 Plugin, one is Plugin point, second is fix
Reply With Quote #3

This is not plugin, this is zombie plague 4.3 (or highest) modified. I have my custom zombie plague 6.1 with spirits. This is similar... You easy modify your zp and add points.

Try this:

1) New points
Code:
new points[33]
2) Points for kill
Search in zp4.3 for this and add + points for kill:
Code:
// Human killed zombie, add up the extra frags for kill
	if (!g_zombie[attacker] && get_pcvar_num(cvar_fragskill) > 1)
		UpdateFrags(attacker, victim, get_pcvar_num(cvar_fragskill) - 1, 0, 0)
	points[attacker] += 1
3) Your menu and functions
1- Double Damage. = 150 Point
2-300 ammo = 200 point
3-150 ammo = 50 point
4- buy Armageddon mode

Create menu with functions...and add to all his items this :
Code:
		           {
                        case 1:
			{
                                if(points[id] >= 150)
                                {
				            points[id] -= 150
				            client_print( id, print_center, "You got Doubble damage !" )
				            zp_colored_print(id, "^x04[ZP]^x01-18 points")
                        }
			else
			{ 
                                your other code...
And design your other functions
Laoming is offline
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 10-26-2015 , 21:00   Re: Searching for 2 Plugin, one is Plugin point, second is fix
Reply With Quote #4

Full code please, that not enough. .....
bakir123 is offline
Send a message via Skype™ to bakir123
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 10-29-2015 , 23:56   Re: Searching for 2 Plugin, one is Plugin point, second is fix
Reply With Quote #5

Any help?
bakir123 is offline
Send a message via Skype™ to bakir123
Laoming
Junior Member
Join Date: May 2015
Location: Czech Republic
Old 10-31-2015 , 09:04   Re: Searching for 2 Plugin, one is Plugin point, second is fix
Reply With Quote #6

Code:
public obchod_shop(id,menu,item) // YOUR SHOP
{	
	if(item == MENU_EXIT) 
	{
		menu_destroy(menu)
		return PLUGIN_HANDLED
	}
	switch(item)
	{
		case 0:
		{	
			if (g_zombie[id])
			return PLUGIN_HANDLED
			
			if(points[id] >= 150)
				{
					points[id] -= 150
					doubble_damage(id)
					client_print(id, print_center, "You buy 2x damage for this round !")
					zp_colored_print(id, "^x04[ZP]^x01-12 points")
				}
				else
				{
					client_print(id, print_center, "Not enought points !")
			}
		}		
		case 1:
		{
			if(g_zombie[id])
			return PLUGIN_HANDLED
			
			if(points[id] >= 200)
			{
				points[id] -= 200
				client_print(id, print_center, "You buy +300 ammo !")
				zp_colored_print(id, "^x04[ZP]^x01-200 points")	
				cs_set_user_bpammo(id, CSW_M4A1, 300)
                                cs_set_user_bpammo(id, CSW_AK47, 300)
			}
			else
			{
				client_print(id, print_center, "Not enought points !")
			}
		}
		case 2:
		{	
                          continue....
	}
	return PLUGIN_HANDLED
}

public doubble_damage(victim, inflictor, attacker, Float:damage, damage_bits)
{
        if(is_user_connected(attacker))
        {
                SetHamParamFloat(4,damage * 2.0);
        }
}

Last edited by Laoming; 10-31-2015 at 09:10.
Laoming 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 09:08.


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