17.11.2009, 17:03
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:
so you have a example of it
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;
}

