Raised This Month: $ Target: $400
 0% 

MqSql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
NzGamers
Member
Join Date: Jul 2009
Old 10-07-2010 , 19:24   Re: MqSql
Reply With Quote #6

ty.

this is my cmdLogin

PHP Code:
public cmdLogIn(id)
{
    if(!
g_bUserhasLogedIn[id])
    {
        new 
szArg[32];
        
read_argv(1szArgcharsmax(szArg));
        
        new 
szArg2[32];
        
read_argv(2szArg2charsmax(szArg2));
        
        if(
strlen(szArg) < 1)
        {
            
console_print(id"Usage: <user> <password>");
            return 
PLUGIN_HANDLED;
        }
        
        else if(
equal(szArgUSER) && equal(szArg2PASS))
        {
            
g_bUserhasLogedIn[id] = true;
            
remove_task(id);
            
console_print(id"[ LOGIN ] Login Successful. Enjoy your game");
            return 
PLUGIN_HANDLED;
        }
        
        else if(!
equal(szArgUSER) || !equal(szArg2PASS))
        {
            
g_bUserhasLogedIn[id] = false;
            
console_print(id"[ LOGIN ] Incorrect UserName or Password. You have %i seconds to login left"g_iLogInTimer[id]);
        }
    }
    
    return 
PLUGIN_HANDLED;

NzGamers is offline
 



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 10:16.


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