[HELP]need /edithint command
#1

can somebody make the command: /edithinterior?
it must do to change the interior of a house id
example:
/edithinterior [houseid] [interiorid]
when i have changed that there must come on the house description:
THIS HOUSE IS FOR SALE!
DISCRIPTION: [Interiorid discription]
and so on,
i have already a /edithprice:
pawn Код:
if(strcmp(cmd, "/edithprice", true) == 0)
    {
      tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GREY, "USAGE: /edithprice [houseid] [price]");
            return 1;
        }
        giveplayerid = strval(tmp);
        tmp = strtok(cmdtext, idx);
        new price = strval(tmp);

        if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 105)
        {
            HouseInfo[giveplayerid][hValue] = price;
            format(string, sizeof(string), "-OperServ- Houseid %d it's price has been set to %d by admin %s", giveplayerid, price, PlayerName[playerid]);
            SendClientMessageToAll(COLOR_LIGHTBLUE, string);
            return 1;
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
        }
        return 1;
    }
so you have a example of it
Reply


Messages In This Thread
[HELP]need /edithint command - by breakpaper - 17.11.2009, 17:03
Re: [HELP]need /edithint command - by breakpaper - 17.11.2009, 17:26
Re: [HELP]need /edithint command - by breakpaper - 18.11.2009, 12:29
Re: [HELP]need /edithint command - by LarzI - 18.11.2009, 12:32
Re: [HELP]need /edithint command - by breakpaper - 18.11.2009, 12:34
Re: [HELP]need /edithint command - by miokie - 18.11.2009, 12:38
Re: [HELP]need /edithint command - by breakpaper - 18.11.2009, 12:39
Re: [HELP]need /edithint command - by Ritchie999 - 18.11.2009, 12:42

Forum Jump:


Users browsing this thread: 1 Guest(s)