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

Awp Punish


Post New Thread Reply   
 
Thread Tools Display Modes
wrongen
Junior Member
Join Date: May 2010
Location: Australia
Old 05-15-2010 , 22:53   Re: Awp Punish
Reply With Quote #51

how can i make it if someone kills with one of those weapons it slays them
wrongen is offline
Phaux
New Member
Join Date: May 2010
Old 05-26-2010 , 21:18   Re: Awp Punish
Reply With Quote #52

Hello, just wanted to drop in and say that this is a great plugin, I laugh every time I hear an AWP shot, followed by something being burned

I did want to point out a simple mistake, on line 106:
Code:
if(StrEqual("weapon_sg552",Weapon)== true && StrContains(Weps,"c")!= -1 && Shots > GetConVarInt(MaxShots)) //flag e sg552
StrContains(Weps,"c") should be changed to StrContains(Weps,"e"), because as it is, if you restrict the SG550 ("c"), it'll also restrict the SG552 without setting the "e" flag. In the mean time I recompiled it myself with this fix, and it works perfectly now, just thought I'd point that out
Phaux is offline
mubhcaeb78
New Member
Join Date: Jun 2010
Old 06-11-2010 , 13:45   Re: Awp Punish
Reply With Quote #53

Not sure where to put the cvars.

In /cfg/sourcemod/
I tried appending sourcemod.cfg, didn't change it off of burn.
I tried creating plugin.awp_punish.cfg and just awp_punish.cfg, didn't change it off of burn.

Here is what I am putting in for the cfg:
Code:
////////////////////////////  AWP PUNISH /////////////////////////////////
//CVARS:
//    * awp_punish_on 1/0 1 turns the plugin on 0 is off
//    * awp_punish_mode abcde differnt levels of punishment
//    * awp_punish_weps abcde weapon restriction flags
//    * awp_punish_max_shots 0 amount of shot allowed before punishing
//    * awp_punish_awp_map 0 wether or not to contiue plugin on awp map
//Flags:
//    * A : Sets The Player On Fire
//    * B : Slaps The Player With -45 Health
//    * C : Strips The Users Weapons
//    * D : Takes Away The Users Armor
//    * E : Kills The Player By Suicide
//Weapon Flags:
//    * A : Awp
//    * B : G3SG1
//    * C : SG550
//    * D : Scout
//    * E : SG552
awp_punish_on 1
awp_punish_mode b
awp_punish_weps a
awp_punish_max_shots 2
mubhcaeb78 is offline
mubhcaeb78
New Member
Join Date: Jun 2010
Old 06-11-2010 , 13:51   Re: Awp Punish
Reply With Quote #54

I looked in source and all I see is:
Code:
Config = LoadGameConfigFile("plugin.awp_punish");
mubhcaeb78 is offline
Funky_AchTuNG
Junior Member
Join Date: Jul 2010
Old 08-01-2010 , 06:57   Re: Awp Punish
Reply With Quote #55

How to convert this plugin to AWP was forbidden for a player after 10 minutes?

Sorry my Englisch^^
Funky_AchTuNG is offline
skabull
Senior Member
Join Date: Mar 2010
Location: Bretagne
Old 08-09-2010 , 04:45   Re: Awp Punish
Reply With Quote #56

Hello

Sorry for my English school ...

Alos I tested the plugin, but if you put the punishment

Quote:
C: The Users Weapons Strips
The server will crash immediately punishment, it is because of the update on orangebox?

Someone he can fix this error?

Thank you.

Last edited by skabull; 08-09-2010 at 07:54.
skabull is offline
skabull
Senior Member
Join Date: Mar 2010
Location: Bretagne
Old 08-14-2010 , 18:35   Re: Awp Punish
Reply With Quote #57

up please...
skabull is offline
skabull
Senior Member
Join Date: Mar 2010
Location: Bretagne
Old 08-20-2010 , 03:45   Re: Awp Punish
Reply With Quote #58

Please ....
skabull is offline
Rigr
Junior Member
Join Date: Jan 2011
Old 05-14-2011 , 06:07   Re: Awp Punish
Reply With Quote #59

Hi all,

I found this plugin and I like the idea. But it seems that the plugin author doesn't support this anymore.
So I've changed something in the code.

If you find any more errors please write it to me.

Changes:
- added info text on first spawn that awp punish is enabled
- added info text (shot counter) if cvar "awp_punish_max_shots" is bigger than 0 (default)
- fixed the "weaponstrip"-bug
- plugin.awp_punish.txt isn't nessecary anymore
- changed code for slapping to 1 hp (new: SetEntityHealth)
- added an autoconfig
- changed bug on weapon sg552 (see Phaux' comment)
- edited "weapon_fire"-event
- added "ifPlayerIsAlive" in the punish code to prevent errors
- changed code for saving the max allowed shots for each player

Installation:
Just put the smx-file in your plugins folder and reload map.

Greets
Rigr
Attached Files
File Type: smx awp_punish.smx (6.2 KB, 127 views)
File Type: sp Get Plugin or Get Source (awp_punish.sp - 324 views - 5.8 KB)

Last edited by Rigr; 05-14-2011 at 06:11.
Rigr is offline
fishboy777
Member
Join Date: Apr 2007
Old 07-26-2013 , 15:57   Re: Awp Punish
Reply With Quote #60

Is there anyway that this plugin can punish people for using the auto snipers too? I tryed following the same steps as you did for the awp punish but nothing worked.
fishboy777 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 11:02.


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