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

Can someone do me a favor?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cold-serenity
Member
Join Date: Sep 2009
Old 03-13-2011 , 16:10   Can someone do me a favor?
Reply With Quote #1

The following plugin: https://forums.alliedmods.net/showthread.php?t=60180 , is a plugins that I run on my server. We use the plugin and set the knife to 3000 strength so that on our zombie server, humans can knife a zombie and the zombies fly.

However, we have an issue where when a zombie "ZOMBIFIES" a human, the human gets launched by the plugin as well. This is due to both humans and zombies using the knife.

Could someone please modify this plugin such that it only launches the zombies and not the humans. I have tried learning how to script, but I have failed many times. Possibly just make it so the script modifies knockback of CT knives only, or the script only works when a CT does damage and not when a zombie does.

Thanks to anyone who can help me.

PS: I have searched and a similar thread died with no replies.
cold-serenity is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 03-13-2011 , 16:17   Re: Can someone do me a favor?
Reply With Quote #2

That's very easy, you just add a team check. But this is not the request forum, and i don't know the team values of CSS frankly.
AtomicStryker is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 03-13-2011 , 16:20   Re: Can someone do me a favor?
Reply With Quote #3

Team values for CS:S. 0 = None, 1 = Spectator, 2 = Terrorist, 3 = Counter-Terrorist.
__________________
thetwistedpanda is offline
cold-serenity
Member
Join Date: Sep 2009
Old 03-13-2011 , 17:03   Re: Can someone do me a favor?
Reply With Quote #4

Can someone please move this to the request forum please. Also I do not have a clue on how to do this. I am scripting illiterate. I dont know what commands to use or even what to edit.

If it is easy can someone please do it for me.
cold-serenity is offline
Invader Amoto
Member
Join Date: May 2009
Old 03-13-2011 , 22:01   Re: Can someone do me a favor?
Reply With Quote #5

Which team is zombies and which is humans?
If zombies are counter terrorist, then it would be:
PHP Code:
    if(GetClientTeam(client) != 3)
        return 
Plugin_Continue
should go right after:
PHP Code:
    new attacker GetClientOfUserId(GetEventInt(event"attacker")); 
If zombies are terrorist, then the 3 should be a 2.
Invader Amoto is offline
InflatableSoulmate
Senior Member
Join Date: Oct 2008
Location: *.mdmp
Old 03-13-2011 , 22:18   Re: Can someone do me a favor?
Reply With Quote #6

Quote:
Originally Posted by Invader Amoto View Post
Which team is zombies and which is humans?
If zombies are counter terrorist, then it would be:
PHP Code:
    if(GetClientTeam(client) != 3)
        return 
Plugin_Continue
should go right after:
PHP Code:
    new attacker GetClientOfUserId(GetEventInt(event"attacker")); 
If zombies are terrorist, then the 3 should be a 2.
don't you mean:
PHP Code:
    if(GetClientTeam(attacker) != 3)
        return 
Plugin_Continue
__________________
Inflatable Soulmate
Server Operations Manager
Brothers of Chaos Multi-Gaming Clan
http://www.brothersofchaos.com/
InflatableSoulmate is offline
cold-serenity
Member
Join Date: Sep 2009
Old 03-14-2011 , 15:00   Re: Can someone do me a favor?
Reply With Quote #7

Thank you for the help, it now works.
cold-serenity is offline
Invader Amoto
Member
Join Date: May 2009
Old 03-14-2011 , 15:21   Re: Can someone do me a favor?
Reply With Quote #8

Quote:
Originally Posted by InflatableSoulmate View Post
don't you mean:
PHP Code:
    if(GetClientTeam(attacker) != 3)
        return 
Plugin_Continue
Either way, as long as you put the correct number.
Invader Amoto 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 19:08.


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