[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
#2

the house interior stuff is:
HouseInfo[playerid][hInt]
if you need that it is ok,
and this for description:
HouseInfo[playerid][hDescription]
Reply
#3

Is this so hard to make?
Reply
#4

Nah, it's not. So why not try make it yourself?
Reply
#5

i already try it
but, then i go to a sky where i can walk, and it not change the description,

-- breakpaper
Reply
#6

Ask in the script request thread, that's what it is there for.
Reply
#7

this is much faster,
because everyone just speaks about his own script request!
Reply
#8

jesus christ whats so hard about pressing the button that says "Modify". its closer than the button that says Reply
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)