[ajuda] ajuda com isso ?
#4

Quote:
Originally Posted by L.D.K
Посмотреть сообщение
tipo galera criei umas familias no servidor mais tipo quando convido alguem ele acc ele fika como dono da familia tanbem eu queria que ele ficasse como menbro como faзo ?
pawn Код:
if(strcmp(cmd, "/convidarf", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /convidarf [playerid/Parte-do-Nick]");
                return 1;
            }
            new para1;
            para1 = ReturnUser(tmp);
            if (PlayerInfo[playerid][pLFamilia] == 1)
            {
                if(IsPlayerConnected(para1))
                {
                    if(PlayerInfo[para1][pFamilia] != 0)
                    {
                        SendClientMessage(playerid, COLOR_GREY, "Este player jб participa de uma Familia.");
                        return 1;
                    }
                    if(para1 != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* %s te convidou para entrar para a familia Smith (digite /aceitar convitef ) para aceitar.", PlayerName(playerid));// e esse aki <-------------------------------------
                        SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "* Vocк convidou %s para sua Familia.", giveplayer);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                        InviteOfferf[para1] = playerid;
                    }
             }//not connected
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й dono da familia Smith para usar este comando !");
        }
        return true;
    }
Tб a mesma coisa.
Reply


Messages In This Thread
[ajuda] ajuda com isso ? - by L.D.K - 23.05.2012, 00:48
Re: [ajuda] ajuda com isso ? - by ViniBorn - 23.05.2012, 01:09
Re: [ajuda] ajuda com isso ? - by L.D.K - 23.05.2012, 01:25
Re: [ajuda] ajuda com isso ? - by ViniBorn - 23.05.2012, 01:30
Re: [ajuda] ajuda com isso ? - by L.D.K - 23.05.2012, 01:34
Re: [ajuda] ajuda com isso ? - by ViniBorn - 23.05.2012, 01:44
Re: [ajuda] ajuda com isso ? - by L.D.K - 23.05.2012, 01:51
Re: [ajuda] ajuda com isso ? - by ViniBorn - 23.05.2012, 01:54
Re: [ajuda] ajuda com isso ? - by L.D.K - 23.05.2012, 01:59
Re: [ajuda] ajuda com isso ? - by ViniBorn - 23.05.2012, 02:12

Forum Jump:


Users browsing this thread: 1 Guest(s)