Command Help [REP ++]
#1

Hi All.I need help with the my command.

I maked command to set a admin panel password but now i should to put a Numbers.I want to make it with charachters ? How to make that ?

pawn Код:
//------------------------------------------------------------------------------
    if(strcmp(cmd, "/setapw", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 1337)
        {
            if(IsPlayerConnected(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "{37F906}INFO:{FFFFFF}/setapw [ID/Ime na Igrac] [pw]");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "{37F906}INFO:{FFFFFF}/setapw [ID/Ime na Igrac] [pw]");
                    return 1;
                }
//              new playa;
//              playa = ReturnUser(tmp);
                moneys = strval(tmp);
                PlayerInfo[giveplayerid][pAdminPw] = moneys;
                GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string),"{37F906}INFO:{FFFFFF}Admin %s ti namesti %d lozinka na Admin Panel.",sendername,moneys);
                SendClientMessage(giveplayerid, COLOR_WHITE, string);
                format(string, sizeof(string),"{37F906}INFO:{FFFFFF}Mu namestivte %d Admin Password, na %s za Admin Panel.",moneys,giveplayer);
                SendClientMessage(playerid, COLOR_WHITE, string);
                SacuvajIgraca(giveplayerid);
            }
        }
        else
        {
           SCM(playerid, WHITE,"{FF4040}GRESKA:{FFFFFF}Ne ste ovlasteni za Ovaa Komanda.");
           return 1;
        }
        return 1;
    }
Reply


Messages In This Thread
Command Help [REP ++] - by teomakedonija - 02.04.2013, 16:34
Re: Command Help [REP ++] - by brawrr - 02.04.2013, 16:43
Re: Command Help [REP ++] - by teomakedonija - 02.04.2013, 16:57
Re: Command Help [REP ++] - by teomakedonija - 02.04.2013, 17:20
Re: Command Help [REP ++] - by MP2 - 02.04.2013, 17:23
Re: Command Help [REP ++] - by teomakedonija - 02.04.2013, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)