Help :)
#2

pawn Код:
if(strcmp(cmd, "/changepass", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "You need to login first.");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "USAGE: /changepass [new password]");
                return 1;
            }
            strmid(PlayerInfo[playerid][pPassword], tmp, 0, strlen(cmdtext), 255);
            SendClientMessage(playerid, COLOR_YELLOW, "Password has been changed successfuly");
        }
        return 1;
    }
Change pPassword with the password variable used in your registration system.
Reply


Messages In This Thread
Help :) - by ColdRain - 14.05.2012, 06:55
Re: Help :) - by Face9000 - 14.05.2012, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)