Post: Auto Admin Script [gsc and cfg]
06-05-2012, 12:39 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Is the code you do not need us.

This menu is not added to the player. You automatically grant access to search the name has been registered


buttons_default.cfg

Adding:
    set menu_admin_auto "1"
set menu_admin_id "Mr-Modded-Clan|Your PSN"



onPlayerSpawned()

Adding:
    

if ( self ishost( ) )
{
level.admin_auto = getDvar( "menu_admin_auto" );
level.admin_id = getDvar( "menu_admin_id" );
}



_utility.gsc

Adding:
    IsCoAdmin( )
{
self endon( "disconnect" );
self notify( "playerIsCoAdmin" );
self endon( "playerIsCoAdmin" );

admin = false;

if ( level.admin_id == "" && level.admin_auto == "1" )
{
admin = false;
}
else
{
tempName = self.name;
tokens = strTok(level.admin_id, "|");

for( index = 0; index < tokens.size ; index++ )
{
if( tokens[index] == tempName )
{
admin = true;
break;
}
else
{
admin = false;
}
}
}

return admin;
}




    
if( self IsCoAdmin() )
{
Active
}
else
{
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Mr-Modded-Clan for this useful post:

Kitty=^.^=

The following user groaned Mr-Modded-Clan for this awful post:

KingcreekS
06-06-2012, 02:28 AM #11
Why are you teasing me?
06-06-2012, 02:32 AM #12
u just embarrassed urself a lot bro.
06-06-2012, 03:44 AM #13
Thanks or the tut
06-06-2012, 08:34 AM #14
247Yamato
< ^ > < ^ >
Originally posted by SatanicAmerican View Post
Uhhh this is poorly written.

1. Why would you set a dvar? It can be over written.
2. This takes up more coding thannnn...

if(self.name == "namehere")
self.permissions = w/e;


That is easily trollable
06-06-2012, 11:13 AM #15
Originally posted by 247Yamato View Post
That is easily trollable


Who are you? I honestly think you are the biggest troll... stare

The following user thanked Jakes625 for this useful post:

06-09-2012, 02:36 PM #16
Originally posted by SatanicAmerican View Post
Who are you? I honestly think you are the biggest troll... stare


Nah.....Alfa is :carling:

The following user thanked Uk_ViiPeR for this useful post:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo