12.10.2011, 16:24
For first command:
Or you can:
pawn Код:
YCMD:buyhouse(playerid, o[], help)
{
if(help) return SendClientMessage(playerid, -1, "Buyhouse help");
if(!isnull(o)) return 0;
if(HouseOwner[playerid] == true) return SendClientMessage(playerid, 0xE21F1FFF, "You already own a house.");
if(IsSettingUpHouse[playerid] == true ) return SendClientMessage(playerid, 0xE21F1FFF, "You are already setting up your house.");
ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Confirmation", "You are about to create your very own house.\n\nPress 'Continue' to start.", "Continue", "Cancel");
return true;
}
pawn Код:
YCMD:buyhouse(playerid, o[], help)
{
#pragma unused o, help
if(HouseOwner[playerid] == true) return SendClientMessage(playerid, 0xE21F1FFF, "You already own a house.");
if(IsSettingUpHouse[playerid] == true ) return SendClientMessage(playerid, 0xE21F1FFF, "You are already setting up your house.");
ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Confirmation", "You are about to create your very own house.\n\nPress 'Continue' to start.", "Continue", "Cancel");
return true;
}