24.05.2018, 04:54
hello this is my /hupgrade command
i want add a command /heal for heal in my own house (if house upgraded)
how to add ?
Код:
CMD:hupgrade(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pPhousekey] != 999 && strcmp(PlayerInfo[playerid][pNormalName], HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
ShowPlayerDialog(playerid, DIALOG_HUPGRADE, DIALOG_STYLE_LIST, "House upgrades", "Food upgrade - $50,000\nMusic upgrade - {FFFF00}15 premium points", "Select", "Exit");
}
else return SendClientMessage(playerid, COLOR_WHITE, "You don't own a house.");
}
return 1;
}
how to add ?


