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

[Request] CSGO HeadShot Only Plugin !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vivo
Senior Member
Join Date: May 2014
Old 06-04-2015 , 14:25   [Request] CSGO HeadShot Only Plugin !
Reply With Quote #1

Hello, I want a CSGO HeadShot only plugin, All plugins in approved selection are not working on last sm (1.7.2) when i try to compile it locally it's giving me fatal error, Please help and thanks.
__________________
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.
Vivo is offline
klexen
Senior Member
Join Date: Sep 2013
Old 06-04-2015 , 15:25   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #2

It's not tested. But this might work.
__________________



Last edited by klexen; 06-05-2015 at 22:44. Reason: Removed plugin for updated version posted below.
klexen is offline
Vivo
Senior Member
Join Date: May 2014
Old 06-04-2015 , 19:23   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #3

Quote:
Originally Posted by klexen View Post
It's not tested. But this might work.
Thanks it's working well !
Just small problems, C4 can't kill the players + Nades ( HE + Fire ) and zeux are not working if you can make it it will be 100% and i suggest you to post it, We need a working HS Only mod without bugs like all of the old plugins ;)
__________________
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.
Vivo is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 06-04-2015 , 19:45   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #4

Quote:
Originally Posted by klexen View Post
It's not tested. But this might work.
Just a suggestion for your code:

This:
Code:
g_bEnabled = StringToInt(newValue) == 1 ? true : false;
Can be this:
Code:
g_bEnabled = bool:StringToInt(newValue);
Drixevel is offline
secondtimesold
Senior Member
Join Date: Feb 2015
Old 06-04-2015 , 22:33   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #5

https://forums.alliedmods.net/showthread.php?t=234169
__________________
secondtimesold is offline
Vivo
Senior Member
Join Date: May 2014
Old 06-05-2015 , 18:21   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #6

Quote:
Originally Posted by secondtimesold View Post
Error when compile.
__________________
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.
Vivo is offline
klexen
Senior Member
Join Date: Sep 2013
Old 06-05-2015 , 22:33   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #7

Quote:
Originally Posted by r3dw3r3w0lf View Post
Just a suggestion for your code:

This:
Code:
g_bEnabled = StringToInt(newValue) == 1 ? true : false;
Can be this:
Code:
g_bEnabled = bool:StringToInt(newValue);
I know, and I've written that way before too. But I recently saw someone use it the way I used it here, and found that I liked the way it looked / read more. More importantly, it adds more syntax coloring so it looks prettier in my IDE.

Quote:
Originally Posted by secondtimesold View Post

Quote:
Originally Posted by Vivo View Post
Error when compile.
Ultimately, I do think you should use Bara's plugin as it will be maintained and auto updated. If everything doesn't work right I'm sure he'll fix it.

However, I did make a few changes to the simplehs plugin I posted that I'm curious to know if it works or not. The documentation for the damagetypes was written for CSS, but it may work in CSGO as well. In theory, it should allow all damage except bullets to the body.

Attached is version 1.1 untested.
Attached Files
File Type: sp Get Plugin or Get Source (simplehs.sp - 679 views - 2.2 KB)
__________________


klexen is offline
Vivo
Senior Member
Join Date: May 2014
Old 06-06-2015 , 02:21   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #8

Quote:
Originally Posted by klexen View Post
I know, and I've written that way before too. But I recently saw someone use it the way I used it here, and found that I liked the way it looked / read more. More importantly, it adds more syntax coloring so it looks prettier in my IDE.






Ultimately, I do think you should use Bara's plugin as it will be maintained and auto updated. If everything doesn't work right I'm sure he'll fix it.

However, I did make a few changes to the simplehs plugin I posted that I'm curious to know if it works or not. The documentation for the damagetypes was written for CSS, but it may work in CSGO as well. In theory, it should allow all damage except bullets to the body.

Attached is version 1.1 untested.
Thanks a lot really great job man !
I'll try it and i'll tell you
__________________
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.
Vivo is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 06-07-2017 , 12:57   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #9

Not working for CSGO.
Ejziponken is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 06-07-2017 , 13:09   Re: [Request] CSGO HeadShot Only Plugin !
Reply With Quote #10

mp_damage_headshot_only 1
8guawong is offline
Reply


Thread Tools
Display Modes

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 15:57.


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