Raised This Month: $128 Target: $400
 32% 

[Request] Plugin Immunity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ykaru
Member
Join Date: Aug 2019
Old 02-23-2021 , 15:50   [Request] Plugin Immunity
Reply With Quote #1

Hi, I want a plugin with which I can give immunity without giving admin to a player with an .ini folder or something like that. And I want to give immunity to ip, not name.
I just want to write the ip somewhere and that player with that ip has immunity on the server.


This one its not what I want.
https://forums.alliedmods.net/showthread.php?p=46039
Ykaru is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-23-2021 , 18:08   Re: [Request] Plugin Immunity
Reply With Quote #2

That's not possible without adding an admin flag or editing all plugins that use commands.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
raizo11
Senior Member
Join Date: Dec 2013
Location: Romania (Constanta)
Old 02-24-2021 , 02:15   Re: [Request] Plugin Immunity
Reply With Quote #3

maybe his want something like

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

new szIP[40];

new const playerip[][] =
{
    "80.49.84.198",
    "80.49.84.199",
    "89.84.198",
    "180.49.84.198"
}


public client_putinserver(id)
{
    get_user_ip ( id, szIP, charsmax(szIP) , 1 )
 
    for(new i = 0; i < sizeof(playerip);i++)
    {
        if(equal(szIP, playerip[i]))
        {
          set_user_flags(i, read_flags("a"))
        }
    }        
}
__________________
raizo11 is offline
Send a message via ICQ to raizo11 Send a message via AIM to raizo11 Send a message via MSN to raizo11 Send a message via Yahoo to raizo11 Send a message via Skype™ to raizo11
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-24-2021 , 14:46   Re: [Request] Plugin Immunity
Reply With Quote #4

Quote:
without giving admin to a player
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-25-2021 , 04:15   Re: [Request] Plugin Immunity
Reply With Quote #5

You could grant admin and take it away just right after the job's done.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-25-2021 , 07:55   Re: [Request] Plugin Immunity
Reply With Quote #6

True question here is immunity against what?
__________________
@Jailbreak Main Mod v2.6 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-25-2021 , 08:11   Re: [Request] Plugin Immunity
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
True question here is immunity against what?
Anything that could be used against the player i guess. Bans, kicks, slays, etc...

easiest way would be to create a file and read the ip's from that file, block every action done on that ip.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-25-2021 , 08:26   Re: [Request] Plugin Immunity
Reply With Quote #8

its possible with the console commands but with menus its not, you need to edit the plugins as OciXCrom suggested.
__________________
@Jailbreak Main Mod v2.6 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 08:37.


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