27.06.2012, 03:34
(
Последний раз редактировалось Deanol1099; 27.06.2012 в 07:37.
)
Nvm.
#define DIALOG_TOYS placeadialogidherethatisnotalreadyinuse
#define WHITE colorhere
command(attach, playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_TOYS, DIALOG_STYLE_LIST, "Attach toys", "Briefcase\nFire Hydrant\nGas Pump\nWooden Crate\nSmall Buolder\nBBQ Grill\nBeer\nTelevision", "Select", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, WHITE, "You cancelled.");
return 1;
}
switch(listitem)
{
case 0:
{
AttachObjectToPlayer(1210, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
}
case 1:
{
AttachObjectToPlayer(1211, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
}
case 2:
{
AttachObjectToPlayer(1244, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
}
case 3:
{
AttachObjectToPlayer(1271, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
}
case 4:
{
AttachObjectToPlayer(1304, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
}
case 5:
{
AttachObjectToPlayer(1481, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
}
case 6:
{
AttachObjectToPlayer(1484, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
}
case 7:
{
AttachObjectToPlayer(1518, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
}
}
}
}
return 0;
}
command(attach, playerid, params[])
{
ShowPlayerDialog(playerid, DIALOG_TOYS, DIALOG_STYLE_LIST, "Attach toys", "Briefcase\nFire Hydrant\nGas Pump\nWooden Crate\nSmall Buolder\nBBQ Grill\nBeer\nTelevision", "Select", "Cancel");
}
return 1;
}
#define DIALOG_TOYS 1