ADmin Script Not Working???
#6

Код:
dcmd_login(playerid,params[]){    new file[256],n[MAX_PLAYER_NAME];    GetPlayerName(playerid,n,MAX_PLAYER_NAME);    format(file,sizeof(file),"MAdmin/Users/%s.ini",n);    if(!dini_Exists(file)) return SendClientMessage(playerid,YELLOW,"You are not registered! Please /register");    if(PInfo[playerid][Logged] == 1) return SendClientMessage(playerid,LIGHTBLUE,"You are already logged in!");    if(PInfo[playerid][Regged] == 0) return SendClientMessage(playerid,ORANGE,"You are not registered! Please /register");    if(strlen(params))    {        new pass[256];        pass = dini_Get(file,"Password");        if(dini_Exists(file))        {            if(strcmp(params,pass,false) != 0)            {                SendClientMessage(playerid,YELLOW,"Wrong Password!");            }            else            {                dini_Int(file,"Logged",1);                PInfo[playerid][Logged] = 1;                PInfo[playerid][Level] = dini_Int(file,"Level");                SendClientMessage(playerid,YELLOW,"You have now logged in!");                return 1;            }        }    }    else    {        SendClientMessage(playerid,GREY,"USAGE: /login <Password>");        return 1;    }    return 1;}
Reply


Messages In This Thread
ADmin Script Not Working??? - by sciman001 - 05.04.2011, 00:25
Re: ADmin Script Not Working??? - by sciman001 - 05.04.2011, 00:54
Re: ADmin Script Not Working??? - by sciman001 - 05.04.2011, 02:00
Re: ADmin Script Not Working??? - by Maftaca - 05.04.2011, 02:03
Re: ADmin Script Not Working??? - by sciman001 - 05.04.2011, 02:05
Re: ADmin Script Not Working??? - by -Rebel Son- - 05.04.2011, 02:11
Re: ADmin Script Not Working??? - by sciman001 - 05.04.2011, 02:22
Re: ADmin Script Not Working??? - by -Rebel Son- - 05.04.2011, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)