Raised This Month: $ Target: $400
 0% 

Making my own admin system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-28-2013 , 22:32   Re: Making my own admin system
Reply With Quote #1

Quote:
Originally Posted by Jhob94 View Post
Isnt a question of i be patient or not.
I waited long time and i cant wait much more, so i am trying to do it by myself. I could edit amxbans in order to can add admin with amount of days, but i dont have much experience related to websites and sql connections.
Then read, and explore plugins that do.
DruGzOG is offline
Send a message via AIM to DruGzOG
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-29-2013 , 00:18   Re: Making my own admin system
Reply With Quote #2

Quote:
Originally Posted by Jhob94 View Post
I could edit amxbans in order to can add admin with amount of days, but i dont have much experience related to websites and sql connections.
Then add it to the default AMX Mod X system. I've seen plugins that do this. It's even possible that I've done it before, I can't remember for sure since I've done several different edits involving users.ini.
__________________
fysiks is online now
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-29-2013 , 11:45   Re: Making my own admin system
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Then add it to the default AMX Mod X system. I've seen plugins that do this. It's even possible that I've done it before, I can't remember for sure since I've done several different edits involving users.ini.
Can you take a look if you have it?

Edit:
This is what i have for check if time expired
PHP Code:
#include <amxmodx>

public plugin_init(){
    
register_concmd("amx_addvip""add_vip"ADMIN_RCON"<Steam ID> <expire day> <expire month> <expire year>"// flag "t"
}

stock is_valid_vip(expire_yearexpire_monthexpire_day)
{
    new 
y[5], m[3], d[3], today_yeartoday_monthtoday_day
    get_time
("%Y"y4)
    
get_time("%m"m2)
    
get_time("%d"d2)
    
    
today_year str_to_num(y)
    
today_month str_to_num(m)
    
today_day str_to_num(d)
    
    if(
today_year expire_year)
        return 
0
    
    
else if(today_year == expire_year)
    {
        if(
today_month expire_month)
            return 
0
        
        
else if(today_month == expire_month)
        {
            if(
today_day expire_day)
                return 
0
        
}
            
    }
    
    return 
1

__________________

Last edited by Jhob94; 10-29-2013 at 12:05.
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-29-2013 , 20:37   Re: Making my own admin system
Reply With Quote #4

Quote:
Originally Posted by Jhob94 View Post
Can you take a look if you have it?
I don't keep any of these (requested) plugins on purpose. All my [request] plugins are in the forums.
__________________
fysiks is online now
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 23:17.


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