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

[CSS/CSGO] Only Headshot


Post New Thread Reply   
 
Thread Tools Display Modes
Anjin
Senior Member
Join Date: Apr 2015
Old 06-25-2015 , 16:07   Re: [CSS/CSGO] Only Headshot
Reply With Quote #41

Lol, changed "damagetype &" to:

Code:
            if(damagetype == DMG_FALL
                || damagetype == DMG_GENERIC
                || damagetype == DMG_CRUSH
                || damagetype == DMG_SLASH
                || damagetype == DMG_BURN
                || damagetype == DMG_VEHICLE
                || damagetype == DMG_FALL
                || damagetype == DMG_BLAST
                || damagetype == DMG_SHOCK
                || damagetype == DMG_SONIC
                || damagetype == DMG_ENERGYBEAM
                || damagetype == DMG_DROWN
                || damagetype == DMG_PARALYZE
                || damagetype == DMG_NERVEGAS
                || damagetype == DMG_POISON
                || damagetype == DMG_ACID
                || damagetype == DMG_AIRBOAT
                || damagetype == DMG_PLASMA
                || damagetype == DMG_RADIATION
                || damagetype == DMG_SLOWBURN
                || attacker == 0)
and it works, so here's the fixed version.
Attached Files
File Type: sp Get Plugin or Get Source (onlyhs.sp - 459 views - 6.9 KB)
Anjin is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 06-25-2015 , 17:36   Re: [CSS/CSGO] Only Headshot
Reply With Quote #42

You can create a pull request on github. ( https://github.com/Bara20/OnlyHS/pulls )
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Anjin
Senior Member
Join Date: Apr 2015
Old 06-28-2015 , 19:10   Re: [CSS/CSGO] Only Headshot
Reply With Quote #43

PHP Code:
char sBuffer[256], sWeapons[24][64]; 
Doesn't work for all weapons in my list:
Code:
onlyhs_allow_weapons "usp_silencer;cz75a;fiveseven;deagle;elite;tec9;hkp2000;ak47;m4a1;mp9;mp7;mac10;ump45;m249;m4a1_silencer;sg556;aug;galilar;famas;ssg08;awp;p90;nova;xm1014;mag7;negev;bizon;sawedoff;glock;p250"
Changing it to:
PHP Code:
char sBuffer[256], sWeapons[32][64]; 
fixed it. To be honest, I have no idea why, as I don't understand the code

Last edited by Anjin; 06-28-2015 at 19:10.
Anjin is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 07-05-2015 , 13:03   Re: [CSS/CSGO] Only Headshot
Reply With Quote #44

Quote:
Originally Posted by Anjin View Post
Lol, changed "damagetype &" to:
[...]
and it works, so here's the fixed version.
Quote:
Originally Posted by Anjin View Post
PHP Code:
char sBuffer[256], sWeapons[24][64]; 
Doesn't work for all weapons in my list:
Code:
onlyhs_allow_weapons "usp_silencer;cz75a;fiveseven;deagle;elite;tec9;hkp2000;ak47;m4a1;mp9;mp7;mac10;ump45;m249;m4a1_silencer;sg556;aug;galilar;famas;ssg08;awp;p90;nova;xm1014;mag7;negev;bizon;sawedoff;glock;p250"
Changing it to:
PHP Code:
char sBuffer[256], sWeapons[32][64]; 
fixed it. To be honest, I have no idea why, as I don't understand the code
Thanks.

Changelog (Version 2.0.2):
  • Fixed bug with damagetype (Thanks Anjin)
  • Fixed bug with weapon string (Thanks Anjin)
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Vivo
Senior Member
Join Date: May 2014
Old 10-07-2015 , 13:12   Re: [CSS/CSGO] Only Headshot
Reply With Quote #45

i have no knife while using this plugin
EDIT: it was from knife plugin.
__________________
ViRuSeS # The best Servers and Host: viruses.ga
CSGO: 185.107.96.150:27015 or viruses.ga:27015
TeamSpeak3: 185.107.96.150:9987 or viruses.ga
Welcome! Good luck and have fun enjoy your time.

Last edited by Vivo; 10-09-2015 at 07:50.
Vivo is offline
pp.
New Member
Join Date: Oct 2015
Location: Poland
Old 10-23-2015 , 12:42   Re: [CSS/CSGO] Only Headshot
Reply With Quote #46

Hi, i've got a problem. This plugin works, but I can kill people only by deagle or elite. I added cvar with allowed weapons and it's still not working. Below is my config.

Code:
onlyhs_enable "1"
onlyhs_oneshot "0"
onlyhs_allow_weapons "usp_silencer;cz75a;fiveseven;deagle;elite;tec9;hkp2000;ak47;m4a1;mp9;mp7;mac10;ump45;m249;m4a1_silencer;sg556;aug;galilar;famas;ssg08;awp;p90;nova;xm1014;mag7;negev;bizon;sawedoff;glock;p250"
onlyhs_allow_grenade "0"
onlyhs_allow_world "0"
onlyhs_allow_knife "0"
onlyhs_allow_blood "0"
onlyhs_allow_blood_splatter "0"
onlyhs_allow_blood_splash "0"
Anyone has idea what i'm doing wrong?

Last edited by pp.; 10-23-2015 at 12:45.
pp. is offline
shinwari
New Member
Join Date: Aug 2014
Old 10-27-2015 , 07:50   Re: [CSS/CSGO] Only Headshot
Reply With Quote #47

how can i turn this on off these

onlyhs_oneshot - Enable / Disable kill enemy with one shot (Default: 0)
onlyhs_allow_weapons - Which weapon should be permitted ( Without 'weapon_' ) (Default: deagle)





suppose i want to allow all guns head shot and only 1 bullet required to kill what should i do please help

all i want is to enable this

Use this:
onlyhs_oneweapon 0 (Enable / Disalbe Only One Weapon Damage)

where should i go and type 1 instead of 0 please help
shinwari is offline
shinwari
New Member
Join Date: Aug 2014
Old 10-27-2015 , 08:39   Re: [CSS/CSGO] Only Headshot
Reply With Quote #48

how can i configure 1 bullet all guns head shot ?

please help
shinwari is offline
Travster
New Member
Join Date: Oct 2015
Old 10-29-2015 , 07:12   Re: [CSS/CSGO] Only Headshot
Reply With Quote #49

how can i automaticly load this on server when he crashed or restarted?

onlyhs_allow_weapons "usp_silencer;cz75a;fiveseven;deagle;elite;te c9;hkp2000;ak47;m4a1;mp9;mp7;mac10;ump45;m249 ;m4a1_silencer;sg556;aug;galilar;famas;ssg08; awp;p90;nova;xm1014;mag7;negev;bizon;sawedoff ;glock;p250"
Travster is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 11-30-2015 , 17:36   Re: [CSS/CSGO] Only Headshot
Reply With Quote #50

Code:
// This file was auto-generated by SourceMod (v1.7.3-dev+5272)
// ConVars for plugin "onlyhs.smx"


// Enable / Disable No Blood
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
onlyhs_allow_blood "1"

// Enable / Disable No Blood Splash
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
onlyhs_allow_blood_splash "1"

// Enable / Disable No Blood Splatter
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
onlyhs_allow_blood_splatter "1"

// Enable / Disalbe No Grenade Damage
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
onlyhs_allow_grenade "0"

// Enable / Disalbe No Knife Damage
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
onlyhs_allow_knife "0"

// Which weapon should be permitted ( Without 'weapon_' )?
// -
// Default: "deagle;elite"
onlyhs_allow_weapons "deagle"

// Enable / Disalbe No World Damage
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
onlyhs_allow_world "0"

// Enable / Disalbe Only HeadShot Plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
onlyhs_enable "1"

// Enable / Disable kill enemy with one shot
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
onlyhs_oneshot "0"
all players get hegrenade???

MetaMod:Source v1.11.0-dev+998V, SourceMod v1.7.3-dev+5272

Quote:
2363 [SM] Listing 57 plugins:
01 "RCON Lock" (0.6.7) by devicenull
02 "Donate" (1.3) by FreakyLike
03 "Fake sv_downloadurl to players" (1.0) by Bacardi
04 "Disable Auto-Kick" (0.3) by The-Killer
05 "Rock The Vote" (1.7.3-dev+5272) by AlliedModders LLC
06 "Admin Menu" (1.7.3-dev+5272) by AlliedModders LLC
07 "Quiet ConVar Changer" (1.0.0) by bl4nk
08 "Admin Help" (1.7.3-dev+5272) by AlliedModders LLC
09 "Basic Commands" (1.7.3-dev+5272) by AlliedModders LLC
10 "Welcome Sound" (2.0.1) by Experto
11 "Anti-Reconnect" (1.1.5) by exvel
12 "[ANY] Simple Admin and VIP manager" (2.3.1) by Arkarr
13 "SMAC Aimbot Detector" (0.8.6.0) by SMAC Development Team
14 "Show Damage" (1.0.7) by exvel
15 "AFK Manager" (3.6.2) by Rothgar
16 "Simple Chat Processor (Redux)" (2.0.0) by Simple Plugins, Mini
17 "SourceComms" (SBR-1.5.3) by Alex, Sarabveer(VEER™)
18 "High Ping Kicker - Lite Edition" (1.0.0.1) by Liam
19 "Player Commands" (1.7.3-dev+5272) by AlliedModders LLC
20 "Client Preferences" (1.7.3-dev+5272) by AlliedModders LLC
21 "SoDStats" (1.0.11) by ]SoD[ Frostbyte
22 "Admin" (1.2) by Unknown
23 "[ANY] Ban Disconnected Player" (1.3) by Headline, Original Plugin : mad_hamster
24 "In-game Help Menu" (0.3) by chundo
25 "Force HTML MOTDs" (1.0.5) by Twisted|Panda
26 "Only Headshot" (2.0.2) by Bara
27 "SourceMod Anti-Cheat" (0.8.6.0) by SMAC Development Team
28 "Automatic Steam Update (SteamWorks)" (1.0) by Dr. McKay, Sarabveer(VEER™)
29 "SMAC Immunity" (1.0.0) by GoD-Tony
30 "SMAC AutoTrigger Detector" (0.8.6.0) by SMAC Development Team
31 "SMAC Rcon Locker" (0.8.6.0) by SMAC Development Team
32 "Basic Comm Control" (1.7.3-dev+5272) by AlliedModders LLC
33 "Admin File Reader" (1.7.3-dev+5272) by AlliedModders LLC
34 "convarfaker.smx"
35 "SMAC Spinhack Detector" (0.8.6.0) by SMAC Development Team
36 "SourceBans: Admin Config Loader" (1.5.3) by AlliedModders LLC, Sarabveer(VEER™)
37 "Basic Info Triggers" (1.7.3-dev+5272) by AlliedModders LLC
38 "SMAC Client Protection" (0.8.6.0) by SMAC Development Team
39 "Basic Votes" (1.7.3-dev+5272) by AlliedModders LLC
40 "Fun Votes" (1.7.3-dev+5272) by AlliedModders LLC
41 "SMAC ConVar Checker" (0.8.6.0) by SMAC Development Team
42 "Fun Commands" (1.7.3-dev+5272) by AlliedModders LLC
43 "SMACBANS: Block" (0.2.0) by SMACBANS Team
44 "SourceBans Checker" (SBR-1.5.3) by psychonic, Ca$h Munny, Sarabveer(VEER™)
45 "Sound Commands" (1.7.3-dev+5272) by AlliedModders LLC
46 "SourceSleuth" (SBR-1.5.3) by ecca, Sarabveer(VEER™)
47 "Reserved Slots" (1.7.3-dev+5272) by AlliedModders LLC
48 "Basic Chat" (1.7.3-dev+5272) by AlliedModders LLC
49 "MapChooser" (1.7.3-dev+5272) by AlliedModders LLC
50 "SMAC Anti-Speedhack" (0.8.6.0) by SMAC Development Team
51 "Clientprefs Cleaner (Cookies Purge)" (1.0) by Root
52 "SourceBans++" (1.5.3) by SourceBans Development Team, Sarabveer(VEER™)
53 "SMAC Eye Angle Test" (0.8.6.0) by SMAC Development Team
54 "Anti-Flood" (1.7.3-dev+5272) by AlliedModders LLC
55 "SMAC Command Monitor" (0.8.6.0) by SMAC Development Team
56 "SMAC CS:S Exploit Fixes" (0.8.6.0) by SMAC Development Team
57 "Console Welcome Message" (1.1.2) by exvel
eric0279 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:41.


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