[Ajuda] Este comando funciona?
#1

Criei um comando de mandado, apenas para o prefeito.
Quando ele digita /mandado [id], o id fica com 6 estrelas.
Fiz assim:
pawn Код:
if(strcmp(cmd, "/mandado", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pLider] == 7)
            {
                giveplayerid = ReturnUser(tmp);
                if(IsPlayerConnected(giveplayerid))
                {
                    if(IsACop(giveplayerid))
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar mandado em Policiais!");
                        return true;
                    }
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        WantedPoints[giveplayerid] = 6;
                        SetPlayerWantedLevel(giveplayerid, 6);
                        SendClientMessage(giveplayerid, COLOR_GRAD5, "O Prefeito colocou um mandado de prisгo em vocк.");
                        return true;
                    }
                }
            }
        }
        return 1;
    }
Serб que funciona? Se nгo funcionar poderia me ajudar a criar um?
Reply


Messages In This Thread
Este comando funciona? - by IGp - 29.01.2014, 19:45
Re: Este comando funciona? - by Gii - 29.01.2014, 19:49
Re: Este comando funciona? - by IGp - 29.01.2014, 20:06

Forum Jump:


Users browsing this thread: 4 Guest(s)