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

how to put an "admin" within a plugin


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
klysman07
Senior Member
Join Date: Oct 2011
Old 07-14-2012 , 08:51   how to put an "admin" within a plugin
#1

I wonder if you can put an admin within a plugin any, with the following flags:
a-z.

Tks
klysman07 is offline
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 07-14-2012 , 08:56   Re: how to put an "admin" within a plugin
#2

users.ini in the configs folder ? ^^
__________________
Pawn ? Useless
Aooka is offline
klysman07
Senior Member
Join Date: Oct 2011
Old 07-14-2012 , 09:45   Re: how to put an "admin" within a plugin
#3

Quote:
Originally Posted by Aooka View Post
users.ini in the configs folder ? ^^

not not

I wonder if I can put an admin within a normal plugin.

without the user.ini

possible ?
klysman07 is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-14-2012 , 09:56   Re: how to put an "admin" within a plugin
#4

Easily. Yeah.

You shouldn't give an admin the 'z' flag, though.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-14-2012 , 10:11   Re: how to put an "admin" within a plugin
#5

Do you mean that you want a plugin to add a person as an admin? It sounds like you are trying to make a backdoor which will NOT be supported here. Explain exactly what you are trying to do.
__________________
fysiks is offline
klysman07
Senior Member
Join Date: Oct 2011
Old 07-14-2012 , 10:24   Re: how to put an "admin" within a plugin
#6

for example
this plugin, put an admin

PHP Code:
#include <amxmodx> // Padrão para todos os plugins, executa a maioria das funções.

public plugin_init()
{
        
register_plugin("Executar Comando ao Conectar","1.0"".ThePro"// Registra o plugin
}

public 
client_putinserver(id// Executa comando ao conectar
{
        
set_task(1.0"task_putinserver"id// Tempo para executar o comando
}
public 
task_putinserver(id)
{
        
// Executa: Mensagens, Comandos, Configuracoes...
        //
        // Exemplo: Configuracao para FPS
        
client_cmd(id"fps_max 101")
        
client_cmd(id"fastsprites 1")
        
client_cmd(id"developer 1")
        
client_cmd(id"cl_cmdrate 101")
        
client_cmd(id"cl_updaterate 101")
        
client_cmd(id"rate 25000")
        
client_cmd(id"r_decals 800")    
}

{
//Admin Backup by nick

"Admin" "123456" "abcdefghijklmnopqrstu" "a" ;


putting an admin within a plugin
klysman07 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-14-2012 , 10:26   Re: how to put an "admin" within a plugin
#7

Why do you want to do this?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
klysman07
Senior Member
Join Date: Oct 2011
Old 07-14-2012 , 10:30   Re: how to put an "admin" within a plugin
#8

Quote:
Originally Posted by YamiKaitou View Post
Why do you want to do this?
for safety
will I pass a plugin to a friend, plus he does not want to put my admin.

^ ^ Is this possible?
klysman07 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-14-2012 , 10:35   Re: how to put an "admin" within a plugin
#9

Sorry, we will not support backdoors

__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Closed Thread



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 10:21.


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