Results 1 to 7 of 7

Thread: Account system ban

  1. #1
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts

    Account system ban

    Does somebody know how i can ban account? And script for it . Thanks.

  2. #2
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    So, however you made your "account-system" the easiest way is to define ban on player in his data-file.

    Example:

    PHP Code:
    if(!isDefined(self.banned)) fPrintLn(file0); else fPrintLn(file1); 
    Last edited by Jeplaa; 10th November 2013 at 09:55.

  3. #3
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts
    u can use this :
    at the 5 line of create accout add self.banned = 0

    PHP Code:
            if(fgetarg(f,5)!= 0
            {
                
    self setClientCvar("login_message""Account Baneed");
                
    self setClientCvar("ui_allow_login_error","0");
                
    self setClientCvar("ui_allow_login_accept","1");
                
    self setClientCvar("ui_allow_password_error","1");
                
    self setClientCvar("ui_allow_password_accept","0");
                
    closefile(f);
                continue;
            } 
    need help ? xf

  4. #4
    Private First Class
    Join Date
    Jul 2013
    Posts
    170
    Thanks
    44
    Thanked 16 Times in 11 Posts
    Ban by command? or how?
    Last edited by Rocky; 10th November 2013 at 08:58.

  5. #5
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    For God sake, they should make a new Forum for Newbies, that I could keep away from it, because it's just ridiculous how some ppl are behaving/treating scripting here, some of them think that everybody will do everything for them, and they don't need to do any work, and others don't even know what they are saying(malyczolg) but they have to post that nonsense anyway.
    _________________________________________________

    If you want to restrict an account from logging in, just make a new variable eg. "self.banned", set default to false when creating the account, and save it in the user file, then when logging in check if "self.banned" is true or false, if it's true then display an error message and return to the start.

  6. #6
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by YuriJurek View Post
    For God sake, they should make a new Forum for Newbies, that I could keep away from it, because it's just ridiculous how some ppl are behaving/treating scripting here, some of them think that everybody will do everything for them, and they don't need to do any work, and others don't even know what they are saying(malyczolg) but they have to post that nonsense anyway.
    _________________________________________________

    If you want to restrict an account from logging in, just make a new variable eg. "self.banned", set default to false when creating the account, and save it in the user file, then when logging in check if "self.banned" is true or false, if it's true then display an error message and return to the start.
    This is nothing new. Mod forums have been like this since day 1. They don't want to be told how to do it themselves - they want someone to do it for them. So, always translate "how do you do this?" as "Will someone do it for me?" That's just the way it is. Get used to it.

  7. #7
    Private First Class YuriJurek's Avatar
    Join Date
    Jun 2013
    Posts
    219
    Thanks
    152
    Thanked 88 Times in 47 Posts
    Hehe right, that's completely true.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •