SA-MP Forums Archive
[HELP]need /edithint command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]need /edithint command (/showthread.php?tid=109058)



[HELP]need /edithint command - breakpaper - 17.11.2009

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


Re: [HELP]need /edithint command - breakpaper - 17.11.2009

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


Re: [HELP]need /edithint command - breakpaper - 18.11.2009

Is this so hard to make?


Re: [HELP]need /edithint command - LarzI - 18.11.2009

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


Re: [HELP]need /edithint command - breakpaper - 18.11.2009

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

-- breakpaper


Re: [HELP]need /edithint command - miokie - 18.11.2009

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


Re: [HELP]need /edithint command - breakpaper - 18.11.2009

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


Re: [HELP]need /edithint command - Ritchie999 - 18.11.2009

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