30.08.2011, 09:21
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;
}