PHP код:
take_OnDialogResponse( playerid, dialogid, response, listitem)
{
if(dialogid == 68)
{
if(!response) return 1;
AddItem( playerid, ItemInfo[ DeadList[ playerid ][ listitem ] ][ Item_Name ], DeadQntList[ playerid ][ listitem ] );
for( new items; items < MAX_ITEMS; items++)
{
new id = GetDeadID( playerid );
new itemid = PlayerDeadItemID[ items ][ id ];
if( PlayerDeadItemQnt[ items ][ DeadGet[ playerid ][ listitem ] ] != 0)
{
if(itemid == DeadList[ playerid ][ listitem ])
{
PlayerDeadItemQnt[ listitem ][ DeadGet[ playerid ][ listitem ]] = 0;
}
}
}
}
return 0;
}