AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS/CSGO] Only Headshot (https://forums.alliedmods.net/showthread.php?t=234169)

Anjin 06-25-2015 16:07

Re: [CSS/CSGO] Only Headshot
 
1 Attachment(s)
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.

Bara 06-25-2015 17:36

Re: [CSS/CSGO] Only Headshot
 
You can create a pull request on github. ( https://github.com/Bara20/OnlyHS/pulls )

Anjin 06-28-2015 19:10

Re: [CSS/CSGO] Only Headshot
 
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 :D

Bara 07-05-2015 13:03

Re: [CSS/CSGO] Only Headshot
 
Quote:

Originally Posted by Anjin (Post 2312048)
Lol, changed "damagetype &" to:
[...]
and it works, so here's the fixed version.

Quote:

Originally Posted by Anjin (Post 2313281)
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 :D

Thanks.

Changelog (Version 2.0.2):
  • Fixed bug with damagetype (Thanks Anjin)
  • Fixed bug with weapon string (Thanks Anjin)

Vivo 10-07-2015 13:12

Re: [CSS/CSGO] Only Headshot
 
i have no knife while using this plugin
EDIT: it was from knife plugin.

pp. 10-23-2015 12:42

Re: [CSS/CSGO] Only Headshot
 
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?

shinwari 10-27-2015 07:50

Re: [CSS/CSGO] Only Headshot
 
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 10-27-2015 08:39

Re: [CSS/CSGO] Only Headshot
 
how can i configure 1 bullet all guns head shot ?

please help

Travster 10-29-2015 07:12

Re: [CSS/CSGO] Only Headshot
 
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"

eric0279 11-30-2015 17:36

Re: [CSS/CSGO] Only Headshot
 
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:

23:36:33 [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


All times are GMT -4. The time now is 14:49.

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