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

Register System V9.0 by m0skVi4a ;]


Post New Thread Reply   
 
Thread Tools Display Modes
JusTGo
Veteran Member
Join Date: Mar 2013
Old 09-30-2017 , 08:38   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #731

Quote:
Originally Posted by NsaGcl View Post
In KickFunction not exist a preventive bot kicker, so i edited this for prevent bot kick

PHP Code:
/*==============================================================================
    Start of Kick Player function
================================================================================*/
public KickPlayer(parameters[])
{
    new 
id parameters[0]
    new 
reason parameters[1]

    if(!
is_user_connecting(id) && !is_user_connected(id) && !is_user_bot(id))
        return 
PLUGIN_HANDLED

    
new userid get_user_userid(id)

    switch(
reason)
    {
        case 
1:
        {
            if(
is_registered[id] || is_user_bot(id))
                return 
PLUGIN_HANDLED

            console_print
(id"%L"LANG_SERVER"KICK_INFO")
            
server_cmd("kick #%i ^"%L^""useridLANG_PLAYER"KICK_REG")
        }
        case 
2:
        {
            if(
is_logged[id] || is_user_bot(id))
                return 
PLUGIN_HANDLED

            console_print
(id"%L"LANG_SERVER"KICK_INFO")
            
server_cmd("kick #%i ^"%L^""useridLANG_PLAYER"KICK_LOGIN")
        }
        case 
3:
        {
            if(
TrieGetCell(g_cant_login_timeg_client_data[id], value))
            {
                
console_print(id"%L"LANG_SERVER"KICK_INFO")

                if(!
value)
                {
                    
server_cmd("kick #%i ^"%s^""useridLANG_PLAYER"KICK_ATMP_MAP"get_pcvar_num(g_attempts))
                }
                else
                {
                    new 
cal_time get_pcvar_num(g_time) - (time() - value)
                    
server_cmd("kick #%i ^"%s^""useridLANG_PLAYER"KICK_ATMP_TIME"get_pcvar_num(g_attempts), cal_time)
                }
            }
        }
        case 
4:
        {
            
console_print(id"%L"LANG_SERVER"KICK_INFO")
            
server_cmd("kick #%i ^"%L^""useridLANG_SERVER"KICK_LOGOUT")
        }
    }
    return 
PLUGIN_CONTINUE
}
/*==============================================================================
    End of Kick Player function
================================================================================*/ 
it should be:

PHP Code:
public KickPlayer(parameters[])
{
    new 
id parameters[0]
    new 
reason parameters[1]

    if((!
is_user_connecting(id) && !is_user_connected(id)) || is_user_bot(id))
        return 
PLUGIN_HANDLED

    
new userid get_user_userid(id)

    switch(
reason)
    {
        case 
1:
        {
            if(
is_registered[id])
                return 
PLUGIN_HANDLED

            console_print
(id"%L"LANG_SERVER"KICK_INFO")
            
server_cmd("kick #%i ^"%L^""useridLANG_PLAYER"KICK_REG")
        }
        case 
2:
        {
            if(
is_logged[id])
                return 
PLUGIN_HANDLED

            console_print
(id"%L"LANG_SERVER"KICK_INFO")
            
server_cmd("kick #%i ^"%L^""useridLANG_PLAYER"KICK_LOGIN")
        }
        case 
3:
        {
            if(
TrieGetCell(g_cant_login_timeg_client_data[id], value))
            {
                
console_print(id"%L"LANG_SERVER"KICK_INFO")

                if(!
value)
                {
                    
server_cmd("kick #%i ^"%s^""useridLANG_PLAYER"KICK_ATMP_MAP"get_pcvar_num(g_attempts))
                }
                else
                {
                    new 
cal_time get_pcvar_num(g_time) - (time() - value)
                    
server_cmd("kick #%i ^"%s^""useridLANG_PLAYER"KICK_ATMP_TIME"get_pcvar_num(g_attempts), cal_time)
                }
            }
        }
        case 
4:
        {
            
console_print(id"%L"LANG_SERVER"KICK_INFO")
            
server_cmd("kick #%i ^"%L^""useridLANG_SERVER"KICK_LOGOUT")
        }
    }
    return 
PLUGIN_CONTINUE

Quote:
Originally Posted by Firuz View Post
Now hack nick easily
For example, I have a nickname with a capital letter with a password, then it can be hacked just put a nickname with a small letter

how fix?
you are saving by file or mysql ? try to use mysql.
__________________

Last edited by JusTGo; 09-30-2017 at 08:41.
JusTGo is offline
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 11-17-2017 , 16:22   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #732

Quote:
you are saving by file or mysql ? try to use mysql.
Yes, I checked
When you put a nickname with a capital letter, And the password is all ok
If nickname with a small letter, then they are hacked!
Probably you understood me
Thank you all in advance!
Firuz is offline
TheWhitesmith
Senior Member
Join Date: Oct 2017
Location: Morocco :c
Old 11-21-2017 , 16:39   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #733

Find
PHP Code:
public CheckClient(id
Then
PHP Code:
while(read_file(reg_fileline++ , textcharsmax(text), length)) 
And Change This
PHP Code:
if(!(equal(check_client_datag_client_data[id]))) 
To
PHP Code:
if(!(equali(check_client_datag_client_data[id]))) 
(I changed "equal" with "equali")

Last edited by TheWhitesmith; 11-21-2017 at 16:40.
TheWhitesmith is offline
talibana
Member
Join Date: Oct 2008
Location: United Kingdom
Old 12-01-2017 , 13:18   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #734



Random crashes on 1.8.3 version
talibana is offline
Firuz
Member
Join Date: Dec 2014
Location: Tajikistan
Old 02-10-2018 , 14:22   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #735

Solved.

Last edited by Firuz; 03-06-2018 at 16:31.
Firuz is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 05-12-2018 , 12:23   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #736

i have zombie server, and i want to add

before use some commands, i want it show message you need first register/login?
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
instinctpt1
Senior Member
Join Date: Dec 2016
Location: Chandigarh, India
Old 05-13-2018 , 23:19   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #737

Quote:
Originally Posted by Fuck For Fun View Post
i have zombie server, and i want to add

before use some commands, i want it show message you need first register/login?
You can just show black screen Sprite to all players so that they can't pay until the register or login and remove black screen immediately when they logged on or have registered
instinctpt1 is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 05-21-2018 , 12:24   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #738

Quote:
Originally Posted by instinctpt1 View Post
You can just show black screen Sprite to all players so that they can't pay until the register or login and remove black screen immediately when they logged on or have registered
alright, where is that black screen i need enable?
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Azzlaer
New Member
Join Date: Sep 2018
Location: Chile
Old 09-16-2018 , 18:12   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #739

Este plugin funciona para Half Life ??
estoy compilando y testeando
Azzlaer is offline
luciaus18
Senior Member
Join Date: Dec 2014
Old 12-15-2018 , 17:56   Re: Register System V9.0 by m0skVi4a ;]
Reply With Quote #740

The normal save makes lag?

Last edited by luciaus18; 12-17-2018 at 13:00.
luciaus18 is offline
Reply


Thread Tools
Display Modes

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 06:57.


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