[HELP]HouseCar
#5

Here is my first part of the dialog :
pawn Код:
if(strcmp(cmd, "/housecar", true) == 0 || strcmp(cmd, "/hc", true) == 0)
    {
        if(PlayerInfo[playerid][pHouseKey] != INVALID_HOUSE_ID && PlayerInfo[playerid][pHouseOwner] == 1)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerInVehicle(i, HOUSECAR_SPAWN[PlayerInfo[playerid][pHouseKey]]))
                {
                    SendClientMessage(playerid, COLOR_RED, "You cannot do this command because  your housecar is being used.");
                    return 1;
                }
            }
            ShowPlayerDialog(playerid, 25, DIALOG_STYLE_LIST, "Vehicle Types :", "Bikes\nConvertibles\nIndustrial\nLowriders\nOff Road\nSallons\nSport Vehicles\nStation Wagons\nUnique Vehicles\nPolice Cars", "Accept", "Cancel");
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You cannot do this command because you don't have a house.");
        }
        return 1;
    }
Reply


Messages In This Thread
[HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 08:55
Re: [HELP]HouseCar - by TTJJ - 30.08.2011, 09:08
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 09:14
Re: [HELP]HouseCar - by TTJJ - 30.08.2011, 09:19
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 09:21
Re: [HELP]HouseCar - by TTJJ - 30.08.2011, 09:25
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 09:31
Re: [HELP]HouseCar - by TTJJ - 30.08.2011, 09:33
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 09:57
Re: [HELP]HouseCar - by [Aka]Dragonu - 30.08.2011, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)