Converting to YCMD
#2

For first command:
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;
}
Or you can:
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;
}
Reply


Messages In This Thread
Converting to YCMD - by MusicBeast - 12.10.2011, 16:10
Re: Converting to YCMD - by Jafet_Macario - 12.10.2011, 16:24
Re: Converting to YCMD - by MusicBeast - 12.10.2011, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)