AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Security] Plugin pause (https://forums.alliedmods.net/showthread.php?t=196505)

Ex3cuTioN 09-22-2012 04:35

[Security] Plugin pause
 
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?

DjOptimuS 09-22-2012 07:09

Re: [Security] Plugin pause
 
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.

Merciless 09-22-2012 07:41

Re: [Security] Plugin pause
 
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 ^^

fysiks 09-22-2012 13:32

Re: [Security] Plugin pause
 
Quote:

Originally Posted by Merciless (Post 1803869)
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?


All times are GMT -4. The time now is 08:15.

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