Raised This Month: $32 Target: $400
 8% 

Awp Punish


Post New Thread Reply   
 
Thread Tools Display Modes
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-11-2007 , 18:50   Re: Awp Punish
Reply With Quote #21

0.3 released , added extinguish entity on player death and diconnect , to stop the "eternal ingnite sound bug" .


ill start coding to add a cvar for allowed shots before punishing . please keep in mind i have 5 plugins to support and update , so ill work as fast as i can .
Peoples Army is offline
1695
Senior Member
Join Date: Jan 2006
Old 08-12-2007 , 04:27   Re: Awp Punish
Reply With Quote #22

okay cool ! nice job.
1695 is offline
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-12-2007 , 04:32   Re: Awp Punish
Reply With Quote #23

thanks

p.s ill try to get it done and released tomamrow
Peoples Army is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 08-14-2007 , 19:00   Re: Awp Punish
Reply With Quote #24

Heya Peoples Army, any chance of adding the same punishments for Auto snipers too?

I know this detracts from the base idea of anti AWP, however most servers that have the AWP barred, also have the AS's barred too.

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-14-2007 , 19:38   Re: Awp Punish
Reply With Quote #25

yeah it is . let me work on it and see how best to add punishment for other weapons . it was a addon i wanted to add to this plugin anyways .
Peoples Army is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 08-15-2007 , 15:00   Re: Awp Punish
Reply With Quote #26

heya, would this work @ line 52:

Existing:
Code:
// catch weapon fire and see if its an awp
public Action:WeaponEvent(Handle:event , String:name[] , bool:dontBroadcast)
{
    if(GetConVarInt(Switch))
    {
        new clientID = GetEventInt(event,"userid");
        new client = GetClientOfUserId(clientID);
     
        GetClientWeapon(client,Weapon,19)
     
        if(StrEqual("weapon_awp",Weapon)== true)
        {
            PunishPlayer(client);
        }
    }
}
New:
Code:
// catch weapon fire and see if its an awp
public Action:WeaponEvent(Handle:event , String:name[] , bool:dontBroadcast)
{
    if(GetConVarInt(Switch))
    {
        new clientID = GetEventInt(event,"userid");
        new client = GetClientOfUserId(clientID);
     
        GetClientWeapon(client,Weapon,19)
     
        if(StrEqual("weapon_awp",Weapon)== true)
        {
            PunishPlayer(client);
        }
        if(StrEqual("weapon_sg550",Weapon)== true)
        {
            PunishPlayer(client);
        }
        if(StrEqual("weapon_g3sg1",Weapon)== true)
        {
            PunishPlayer(client);
        }
    }
}
Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-15-2007 , 19:39   Re: Awp Punish
Reply With Quote #27

yeah that would work as a temporary hacky fix for you . the reason i wont do it like that is becuase that is HARDCODING those options . i want mine to be customizazle .
Peoples Army is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 08-16-2007 , 07:52   Re: Awp Punish
Reply With Quote #28

ace, in which case some little n00bs are going to be having a shock this afternoon!

BTW is that checking every single 'round' that is being shot? So that now it has another 2 checks to be made, which might lag it out?

Oh added this while I was there too =) :
Code:
    {
        IgniteEntity(client,10.0);
        PrintToChat(client,"You Have Been Punished For Using a n00b Cannon!");
    }
LOL

Matt
__________________

Last edited by MoggieX; 08-16-2007 at 07:56.
MoggieX is offline
Send a message via Skype™ to MoggieX
Peoples Army
SourceMod Donor
Join Date: Mar 2007
Old 08-16-2007 , 08:13   Re: Awp Punish
Reply With Quote #29

i just started version 0.4 yesterday , im using flags a-z , each flag is for a differnt weapon , and you can combine as meny flags as u want . should be relased tommarow
Peoples Army is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 08-20-2007 , 13:31   Re: Awp Punish
Reply With Quote #30

Nice one m8ty,

Also when going through my errors log I have quite a few of these:

Code:
L 08/20/2007 - 19:00:06: [SM] Native "ExtinguishEntity" reported: Client 24 is not in game
L 08/20/2007 - 19:00:06: [SM] Displaying call stack trace for plugin "awp_punish.smx":
L 08/20/2007 - 19:00:06: [SM]   [0]  Line 124, awp_punish.sp::OnClientDisconnect()
L 08/20/2007 - 19:00:07: [SM] Native "ExtinguishEntity" reported: Client 24 is not in game
L 08/20/2007 - 19:00:07: [SM] Displaying call stack trace for plugin "awp_punish.smx":
L 08/20/2007 - 19:00:07: [SM]   [0]  Line 124, awp_punish.sp::OnClientDisconnect()
L 08/20/2007 - 19:00:31: [SM] Native "GetUserAdmin" reported: Client 32 is not connected
Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
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 23:48.


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