View Single Post
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 - 681 views - 2.2 KB)
__________________


klexen is offline