Raised This Month: $ Target: $400
 0% 

[Security] Plugin pause


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ex3cuTioN
Member
Join Date: May 2010
Old 09-22-2012 , 04:35   [Security] Plugin pause
Reply With Quote #1

I want to make some kind of security in my plugins.
I have two ideas. In plugin_cfg to check:
  • if hostname is strictly equal to something
  • if in users.ini is "mySteamid" "" "abcdefghijklmnopqrstu" "ce" and to check for the ";" (in case if exists)
When these checks are made, if they are passed the plugin should stop working! How to stop a plugin by itself? And how to check in users.ini for that specific row?
Ex3cuTioN is offline
DjOptimuS
Senior Member
Join Date: Jan 2009
Old 09-22-2012 , 07:09   Re: [Security] Plugin pause
Reply With Quote #2

if you want to permanently stop a plugin, then use set_fail_state

for the ; thing use the file.inc functions with fopen and fgets into a buffer and check if ; is in the string.

If you have only steamid's in users.ini this means that ; does not show in other place than there.
DjOptimuS is offline
Merciless
BANNED
Join Date: Aug 2009
Location: Belgium
Old 09-22-2012 , 07:41   Re: [Security] Plugin pause
Reply With Quote #3

Security has no point,

- You cant sell amxx.
- If they got sma they can just remove it out
- If you give it free, I guess its a friend, so I dont understand why you wouldnt trust him then ^^
Merciless is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-22-2012 , 13:32   Re: [Security] Plugin pause
Reply With Quote #4

Quote:
Originally Posted by Merciless View Post
Security has no point,

- You cant sell amxx.
- If they got sma they can just remove it out
- If you give it free, I guess its a friend, so I dont understand why you wouldnt trust him then ^^
Why are you still here?
__________________
fysiks 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 00:24.


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