[HELP]House sale cmd
#1

Hello. I have this command :
pawn Код:
if(strcmp(cmd, "/asellallhouses", true) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            for(new h; h < sizeof(HouseInfo); h++)
            {
                format(string, sizeof(string), "Server :  You have successfully sold house id %d", h);
                SendClientMessage(playerid, COLOR_YELLOW, string);
                SellHouse(h);
            }
            PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
            OnHouseUpdate();
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
        }
        return 1;
    }
Ok, and I want when I tipe /asellallhouses a message to appear on the main chat like : Admin %s has sold all the houses in the game. Can someone do it for me ?

P.S : the colour to be COLOR_RED
Reply


Messages In This Thread
[HELP]House sale cmd - by [Aka]Dragonu - 01.09.2011, 10:15
Re: [HELP]House sale cmd - by TTJJ - 01.09.2011, 10:22
Re: [HELP]House sale cmd - by [Aka]Dragonu - 01.09.2011, 11:35

Forum Jump:


Users browsing this thread: 1 Guest(s)