Raised This Month: $ Target: $400
 0% 

Subplugin Submission [T] List of Modified + Requested Plugins


Post New Thread Reply   
 
Thread Tools Display Modes
LuboRusev
Member
Join Date: May 2015
Location: Pleven, Bulgaria
Old 07-03-2015 , 08:49   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #901

Hi, zmd94 I've got another problem these days... I hope you can solve it
So I want this: http://i61.tinypic.com/25p5lhx.jpg
I've edited the zombie_plague40.sma and the zm_vip.sma but when I've tested it in my server I get other things like this: http://i57.tinypic.com/23kbrzq.jpg
And here's some code of my .sma

zombieplague40.sma:
Code:
	// Zombie/nemesis killed human, reward ammo packs
	if (g_zombie[attacker] && (!g_nemesis[attacker] || !get_pcvar_num(cvar_nemignoreammo)))
		{
		g_ammopacks[attacker] += get_pcvar_num(cvar_ammoinfect)
		set_dhudmessage(random(256), random(256), random(256), 0.60, 0.50, 0, 0.0, 3.0, 0.1, 0.1)
		show_dhudmessage(attacker, "+%s AP", g_ammopacks)
		}
zm_vip.sma:
Code:
		if(is_user_alive(attacker) && zp_get_user_zombie(attacker) && !(zp_get_user_nemesis(attacker) && get_pcvar_num(g_nemhealth))) set_user_health(attacker, (get_user_health(attacker) + get_pcvar_num(g_infecthealth)))
		{
		zp_set_user_ammo_packs(attacker, zp_get_user_ammo_packs(attacker) + get_pcvar_num(g_killammo))
		set_dhudmessage(random(256), random(256), random(256), 0.60, 0.50, 0, 0.0, 3.0, 0.1, 0.1)
		show_dhudmessage(attacker, "+%s AP", g_killammo)
		}
__________________
Виж понякога в 4:20.. понякога просто така.. Понякога с кафето и абсолютно винаги след храна
LuboRusev is offline
Send a message via Skype™ to LuboRusev
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-03-2015 , 11:49   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #902

First of all, Killer999, which ZM_VIP version do you use? ZM_VIP 1.7.2 or ZM_VIP 1.9.1?

LuboRusev, just try to change below from your zombieplague40.sma:
Code:
            // Zombie/nemesis killed human, reward ammo packs
    if (g_zombie[attacker] && (!g_nemesis[attacker] || !get_pcvar_num(cvar_nemignoreammo)))
        {
        g_ammopacks[attacker] += get_pcvar_num(cvar_ammoinfect)
        set_dhudmessage(random(256), random(256), random(256), 0.60, 0.50, 0, 0.0, 3.0, 0.1, 0.1)
        show_dhudmessage(attacker, "+%s AP", g_ammopacks)
        }
-->
Code:
            // Zombie/nemesis killed human, reward ammo packs
    if (g_zombie[attacker] && (!g_nemesis[attacker] || !get_pcvar_num(cvar_nemignoreammo)))
        {
        zp_set_user_ammo_packs(attacker, zp_get_user_ammo_packs(attacker) + get_pcvar_num(cvar_ammoinfect))
        set_dhudmessage(random(256), random(256), random(256), 0.60, 0.50, 0, 0.0, 3.0, 0.1, 0.1)
        show_dhudmessage(attacker, "+%d AP", get_pcvar_num(cvar_ammoinfect))
        }
Next, change below from your zm_vip.sma:
Code:
        if(is_user_alive(attacker) && zp_get_user_zombie(attacker) && !(zp_get_user_nemesis(attacker) && get_pcvar_num(g_nemhealth))) set_user_health(attacker, (get_user_health(attacker) + get_pcvar_num(g_infecthealth)))
        {
        zp_set_user_ammo_packs(attacker, zp_get_user_ammo_packs(attacker) + get_pcvar_num(g_killammo))
        set_dhudmessage(random(256), random(256), random(256), 0.60, 0.50, 0, 0.0, 3.0, 0.1, 0.1)
        show_dhudmessage(attacker, "+%s AP", g_killammo)
        }
-->
Code:
        if(is_user_alive(attacker) && zp_get_user_zombie(attacker) && !(zp_get_user_nemesis(attacker) && get_pcvar_num(g_nemhealth)))
        {
            set_user_health(attacker, (get_user_health(attacker) + get_pcvar_num(g_infecthealth)))
            zp_set_user_ammo_packs(attacker, zp_get_user_ammo_packs(attacker) + get_pcvar_num(g_killammo))
            set_dhudmessage(random(256), random(256), random(256), 0.60, 0.50, 0, 0.0, 3.0, 0.1, 0.1)
            show_dhudmessage(attacker, "+%d AP", g_killammo)
        }

Last edited by zmd94; 07-03-2015 at 11:52.
zmd94 is offline
LuboRusev
Member
Join Date: May 2015
Location: Pleven, Bulgaria
Old 07-03-2015 , 14:00   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #903

@zmd94, changed what you told me in the 2 plugins now I get this:
__________________
Виж понякога в 4:20.. понякога просто така.. Понякога с кафето и абсолютно винаги след храна
LuboRusev is offline
Send a message via Skype™ to LuboRusev
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-03-2015 , 17:37   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #904

Sorry, my fault. Just change this from your zm_vip.sma::
Code:
        if(is_user_alive(attacker) && zp_get_user_zombie(attacker) && !(zp_get_user_nemesis(attacker) && get_pcvar_num(g_nemhealth)))
        {
            set_user_health(attacker, (get_user_health(attacker) + get_pcvar_num(g_infecthealth)))
            zp_set_user_ammo_packs(attacker, zp_get_user_ammo_packs(attacker) + get_pcvar_num(g_killammo))
            set_dhudmessage(random(256), random(256), random(256), 0.60, 0.50, 0, 0.0, 3.0, 0.1, 0.1)
            show_dhudmessage(attacker, "+%d AP", g_killammo)
        }
-->
Code:
        if(is_user_alive(attacker) && zp_get_user_zombie(attacker) && !(zp_get_user_nemesis(attacker) && get_pcvar_num(g_nemhealth)))
        {
            set_user_health(attacker, (get_user_health(attacker) + get_pcvar_num(g_infecthealth)))
            zp_set_user_ammo_packs(attacker, zp_get_user_ammo_packs(attacker) + get_pcvar_num(g_killammo))
            set_dhudmessage(random(256), random(256), random(256), 0.60, 0.50, 0, 0.0, 3.0, 0.1, 0.1)
            show_dhudmessage(attacker, "+%d AP", get_pcvar_num(g_killammo))
        }
zmd94 is offline
LuboRusev
Member
Join Date: May 2015
Location: Pleven, Bulgaria
Old 07-03-2015 , 18:40   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #905

Ouff.. A lot of problems.. Now when I changed it, it says +750 or +1000 AP
__________________
Виж понякога в 4:20.. понякога просто така.. Понякога с кафето и абсолютно винаги след храна
LuboRusev is offline
Send a message via Skype™ to LuboRusev
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-03-2015 , 20:34   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #906

It is because the value of cvar that you have set. The cvars are get_pcvar_num(g_killammo) and get_pcvar_num(cvar_ammoinfect).
zmd94 is offline
bakir123
Senior Member
Join Date: Jan 2015
Location: Palestine, Hebron
Old 07-03-2015 , 20:48   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #907

Zmd94, can you give me plagin that show country and city when you a spectating,?
I mean when you dead
Like this
Spectating :
Health , class , armor , ammo
From : ,
Can you?
bakir123 is offline
Send a message via Skype™ to bakir123
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-03-2015 , 23:26   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #908

There is already same plugin as your request. Just search for it.
zmd94 is offline
killer999
Senior Member
Join Date: Dec 2013
Location: India
Old 07-04-2015 , 02:20   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #909

Quote:
Originally Posted by zmd94 View Post
There is already same plugin as your request. Just search for it.
zm vip 1.7.2
__________________
killer999 is offline
Send a message via Skype™ to killer999
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-04-2015 , 04:50   Re: [ZP] List of Modified + Requested Plugins
Reply With Quote #910

Killer999, just follow below tutorial:

https://forums.alliedmods.net/showpo...6&postcount=99

If you still have problems, just tell here again. If not, you can just download the .sma file that I have modified from here:

https://forums.alliedmods.net/showthread.php?t=241858
zmd94 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 17:35.


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